playMaker

Author Topic: looking action that looks at distance to initiate an event  (Read 1870 times)

roach_779

  • Playmaker Newbie
  • *
  • Posts: 13
looking action that looks at distance to initiate an event
« on: March 22, 2013, 01:10:33 AM »
Hi, I'm looking for an action (could be a logic??) that looks at a distance that is stored in a variable. I want to be able to set distance and once set distance is reached, it would initiate an event.

I been looking at logic, but can't find anything.

Thanks

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: looking action that looks at distance to initiate an event
« Reply #1 on: May 17, 2013, 02:27:10 AM »
Hi,

 you need to animate the distance float, and use for example "compare float" action and trigger an event when it reaches your max value. On another fsm or on the same state, you simply inject that distanace in your raycasting action.

 Can you already animate a float and send an event when it reach a max value.

Also, you can use tween engines to do that, animate the float from start to end, and the action will fire an event when finished.

bye,

 Jean