playMaker

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

Prototype_6492

  • Junior Playmaker
  • **
  • Posts: 50
    • View Profile
[Help] Need FSM to recieve trigger event..
« on: May 13, 2015, 10:48:23 PM »
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: 145
    • View Profile
Re: [Help] Need FSM to recieve trigger event..
« Reply #1 on: May 14, 2015, 02: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
    • View Profile
Re: [Help] Need FSM to recieve trigger event..
« Reply #2 on: May 14, 2015, 03:21:51 AM »
Thank you! I'll try this.