Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: roach_779 on March 22, 2013, 01:10:33 AM

Title: looking action that looks at distance to initiate an event
Post by: roach_779 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
Title: Re: looking action that looks at distance to initiate an event
Post by: jeanfabre 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