Turn off an animation temporarily
So I sculpted a weapon into my puppet and created an animation that’s on a timeline in his logic. The scene I’m building now has the player collecting the weapon. I want the animation to not play if the player were to press the corresponding button. Likewise I want the weapon to be invisible until it’s picked up by the player. I tried using a trigger zone that covered the entire area but it sends a pulse when the scene begins triggering the animation once. I also tried a signal manipulator but it also sent a pulse at the start.
-
So you have the animation that plays on a button press? Put that inside its own logic chip.
Wire the Power input of that chip to a counter that defaults at 0 and has a max value of 1.
So the chip is off by default. When the player picks up the weapon you want a single trigger to change all your states. Maybe that's just the player coming within 0.1m. Then you have that condition wired to permanently increment the counter to 1.
This will turn on the chip and make the animation available. You could also use that counter to
• make the weapon visible on the avatar
• destroy the weapon that was on the floor (because it was just picked up) -
Thanks for the reply, you’re awesome that work perfectly.
댓글을 남기려면 로그인하세요.