playMaker

Author Topic: Who called my fsm?[SOLVED]  (Read 1518 times)

Gav (HeyBud)

  • Full Member
  • ***
  • Posts: 126
    • Tumblr
Who called my fsm?[SOLVED]
« on: February 27, 2014, 03:13:17 AM »
Is there a way to get a handle on the game object that sent an event to another game object fsm and store it as a variable? For instance, A cube sends an event to a sphere to move toward the cube. I want to be able to save the cube as a Game Object variable in the sphere. Another analogy: A girl is walking down the street. A guy standing nearby calls the girl over. The girl says "Do I know you?"
The guy says "My name's Joe." The girl saves his info in her phone, so she can call him later. 
« Last Edit: February 27, 2014, 03:43:13 AM by jeanfabre »

redikann

  • Full Member
  • ***
  • Posts: 174
Re: Who called my fsm?
« Reply #1 on: February 27, 2014, 03:25:49 AM »
'GetEventInfo' might be what your looking for.

Gav (HeyBud)

  • Full Member
  • ***
  • Posts: 126
    • Tumblr
Re: Who called my fsm?
« Reply #2 on: February 27, 2014, 03:40:08 AM »
It worked perfectly. Thanks!