Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: kentcheung2000 on March 16, 2018, 01:41:10 PM

Title: int range switch still available?
Post by: kentcheung2000 on March 16, 2018, 01:41:10 PM
Hi,

I am try to do something like sending an event between 2 and 5 in a number.  How can I do it?  Is there something I can do with the regular actions?


Does playmaker has the "int range switch"?  I cannot find it in playmaker..

thanks.

KC
Title: Re: int range switch still available?
Post by: Gav (HeyBud) on March 16, 2018, 07:20:57 PM
The one in the video is a custom action, not included in playmaker out of the box.

You could use Random Int, set it between 2 and 5 and then run that int through an Int Switch, which will send an event in that range.

Random Event Action is handy too.
Title: Re: int range switch still available?
Post by: kentcheung2000 on March 16, 2018, 08:16:59 PM
Thank you so much for your reply.  I am wondering can I do the same thing with "float number" if my number is float?

Thanks.

KC
Title: Re: int range switch still available?
Post by: Gav (HeyBud) on March 16, 2018, 08:47:47 PM
Yep! Random Float and Float Switch.