Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: thefonz on October 18, 2015, 09:54:08 PM
-
Hey everyone
I'm no coder and was wondering how to go about this scenario.
Let's say I have 4 gameobjects (a,b,c,d).
If I select a + b = do something but if a + c selected = do something else.
Just not sure how you tackle this using pm....my guess is bool testing, if so how do I implement this?
Thanks
-
Hi,
you can use bool actions for this
set bool (true) when selecting object and (false) when deselecting
and use "bool all true" one for a+b and one for a+c and so on
-
hey thanks for your answer...im trying to get my head around solving this and i understand what your answer means but I'm just not 100% how to implement this. is it done through multiple fsm's? would you mind posting a sample?
thanks
-
for the life of me I'm not sure what I'm doing wrong...it keeps going to true and won't hit false....
so im doing: mouse pick event -> get fsm bool -> bool all true
hmm..
-
to confirm i have fixed the issue...turns out playmaker is really picky with state orders, simply switched around the final comparison state and it all worked :) woop!