playMaker

Author Topic: [Help] Need FSM to recieve trigger event..  (Read 1574 times)

Prototype_6492

  • Junior Playmaker
  • **
  • Posts: 50
[Help] Need FSM to recieve trigger event..
« 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?

createasaurus

  • Full Member
  • ***
  • Posts: 146
Re: [Help] Need FSM to recieve trigger event..
« Reply #1 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.

Prototype_6492

  • Junior Playmaker
  • **
  • Posts: 50
Re: [Help] Need FSM to recieve trigger event..
« Reply #2 on: May 14, 2015, 06:21:51 AM »
Thank you! I'll try this.