Hi Tony,
What is the best way to do this...
I have the damsel in distress with a sphere collider of 20m and a 'please save me' conversation when the player ontrigger enters.
The player then fights and defeats the bad guy while remaining within the damsels sphere collider.
On the bad guys death i want to trigger another conversation between the damsel and the player so she can thank him.
My issue is that if i make that second conversation on trigger enter i have to leave the sphere collider and come back in to trigger it.
Any ideas?
start a new conversation within same ontrigger enter
Re: start a new conversation within same ontrigger enter
If the bad guy's GameObject is deactivated when defeated, set the damsel's second Dialogue System Trigger to OnUse.
Add a Disappear Event to the bad guy. Set the Event Trigger to On Disable. Configure the On Disappeared () event to call the damsel's DialogueSystemTrigger.OnUse.
To make sure you select the right Dialogue System Trigger (the one set to OnUse), you might want to put it on an empty child GameObject so it's easier to tell them apart.
Add a Disappear Event to the bad guy. Set the Event Trigger to On Disable. Configure the On Disappeared () event to call the damsel's DialogueSystemTrigger.OnUse.
To make sure you select the right Dialogue System Trigger (the one set to OnUse), you might want to put it on an empty child GameObject so it's easier to tell them apart.
Re: start a new conversation within same ontrigger enter
Sorry Tony....
How do i do this?
"Add a Disappear Event to the bad guy"
How do i do this?
"Add a Disappear Event to the bad guy"
Re: start a new conversation within same ontrigger enter
"Disappear Event" is a component that comes with the Dialogue System.
Assuming your bad guy is deactivated when killed, inspect the bad guy. Click the Add Component button at the bottom of the Inspector view, and type "Disappear". Select "Disappear Event".
Then set the Event Trigger dropdown to On Disable.
Click the "+" in the lower right of the On Disappeared () block. This will add a slot where you can assign the Dialogue System Trigger that you want to activate. From the dropdown, select DialogueSystemTrigger.OnUse.
Assuming your bad guy is deactivated when killed, inspect the bad guy. Click the Add Component button at the bottom of the Inspector view, and type "Disappear". Select "Disappear Event".
Then set the Event Trigger dropdown to On Disable.
Click the "+" in the lower right of the On Disappeared () block. This will add a slot where you can assign the Dialogue System Trigger that you want to activate. From the dropdown, select DialogueSystemTrigger.OnUse.
Re: start a new conversation within same ontrigger enter
works perfectly...you are a champion.
I should be right from here.....
i purchased the love / hate asset so i may have a few questions once i start implementing that.
I should be right from here.....
i purchased the love / hate asset so i may have a few questions once i start implementing that.