Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: mmzbr on October 15, 2012, 03:33:19 PM

Title: Trigger event based on an object attribute
Post by: mmzbr 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?
Title: Re: Trigger event based on an object attribute
Post by: kiriri 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.
Title: Re: Trigger event based on an object attribute
Post by: mmzbr 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!