playMaker

Author Topic: Trigger event based on an object attribute  (Read 2364 times)

mmzbr

  • Playmaker Newbie
  • *
  • Posts: 40
Trigger event based on an object attribute
« on: October 15, 2012, 03:33:19 PM »
Could someone help me with this question:

I need to trigger an event when a specify object get the value of 90 in Rotation Y Axis.

Which actions should I use for this?

kiriri

  • Hero Member
  • *****
  • Posts: 506
Re: Trigger event based on an object attribute
« Reply #1 on: October 16, 2012, 07:56:31 AM »
Hey there,

you could use "Get Rotation" , then save the Y rotation as a float called "Y".
Then you can use float compare to compare "Y" to 90 . put the event as the equal event and use a tolerance to make it +- that value. If you want the event to be triggered if Y is 90 or bigger, set the event both as equal and as greater than.
Best,
Sven

mmzbr

  • Playmaker Newbie
  • *
  • Posts: 40
Re: Trigger event based on an object attribute
« Reply #2 on: October 16, 2012, 11:51:31 AM »
Hey there,

you could use "Get Rotation" , then save the Y rotation as a float called "Y".
Then you can use float compare to compare "Y" to 90 . put the event as the equal event and use a tolerance to make it +- that value. If you want the event to be triggered if Y is 90 or bigger, set the event both as equal and as greater than.

Thank you very much. I´ll try!