How do I make the same button have different functions?
I was thinking about making a PvP game like Plants vs Zombies Gardenwarfare, but with superheroes. Some of them need this system to work, but I don't know how.
R2 -> Melee attack
L2 -> Aim
R2 (while L2 is pressed) -> Zoom + Shoot
-
Use an AND gate and wire in the signals. So if R2 AND L2 and held, shoot instead of melee attack.
Alternatively, use the L2 signal to turn off the melee logic so it can't be triggered. And turn on the shooting logic so it can be triggered.
-
Thank you so much! I'm gonna try! :D
Please sign in to leave a comment.