Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Prototype_6492 on May 14, 2015, 01:48:23 AM

Title: [Help] Need FSM to recieve trigger event..
Post by: Prototype_6492 on May 14, 2015, 01:48:23 AM
I'm trying to make an FSM on an enemy recognize when the player hits a trigger.

Ex. If the player enters a collider and that creates a trigger, how do I get it to where that object would send the trigger to an enemy to receive?
Title: Re: [Help] Need FSM to recieve trigger event..
Post by: createasaurus on May 14, 2015, 05:27:54 AM
Hi Prototype_6492,

In your enemy, make an event (call it something like "PlayerTriggers"), and check box it global.

When player hits trigger, use the Send Event action.

In Send Event the target object should be the Game Object / your enemy, and then you should see your global "PlayTriggers" event.

*Or* the Event Target could be Broadcast All, and this will send the event to everyone who has the global "PlayerTriggers" event.
Title: Re: [Help] Need FSM to recieve trigger event..
Post by: Prototype_6492 on May 14, 2015, 06:21:51 AM
Thank you! I'll try this.