Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: detomato on August 11, 2016, 11:15:24 PM
-
Hi,
I have a character with multiple choice of attachment. Eg 5 choices of shoulder pad. What I want to achieve is when I hover a button, the correspondent attachment (gameobject) will be active and the current one will be deactivate. On mouse exit, everything will go back to previous state.
I can easily achieve this if theres only 1 gameobject, but since I have multiple, what is the best way?
Thanks.
-
Have you tried using a GameObject variable to designate the currently equipped gear? If you have this set, you will always turn it back on when mouse exits a button, while turning off the preview gear GO.
-
thanks for the reply.
I dont quite get it tho. Do you by any chance has any sample on that?
Regards.