PlayMaker Help & Tips > PlayMaker Help

looking action that looks at distance to initiate an event

(1/1)

roach_779:
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:
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

Navigation

[0] Message Index

Go to full version