How do I make the following logic? Pls help
When I press triangle button (toggle), character draws guns from holster. How to make X button start shooting, but only when the draw animation is on? And if it's not, X must do smth else.
It was easy while holding both buttons, using "and gate", but it doesn't work with toggled button as it doesn't count as a signal for some reason
Thanks in advance
-
I would use a counter:
Set counter max to 2
When counter hits target value reset counter
Press Triangle bumps the counter value up 1
(So 0 = not drawn, 1 = drawn)
Wire Counter’s current value to the draw animation power (ie if Counter = 1 then draw)
IF Counter’s Current value AND pressing x then shoot -
With the keyframe for the drawn pistol, you could record powering on the microchip that fires the pistol and powers off anything else
-
If you want some more ways, have the toggle as a selector. Two outputs. Triangle sets to next output. Have the logic for drawing the gun powered from output B. Put the fire logic in a microchip, and have that microchip powered by output B.
Having selector toggles power microchips is my go to way of annexing logic elements.
This might work in your current set up, just having your toggle output powering a microchip with the firing logic. -
Wow thank you guys for ideas, I'll try them asap, you're very helpful!
Please sign in to leave a comment.