bonecrusher16O Lance Corporal
Messages : 35 Registration Date : 2011-07-08
| Subject: [SOLVED]More trouble with Animations 4/8/2012, 7:02 pm | |
| Ok, so I set a system up where you kill "wpanel" and it makes a door go up. However, during testing, I was unable to get it to work. Here is the script functions I have for it. - Spoiler:
OnObjectKillName(PlayAnimUp, "wpanel"); OnObjectRespawnName(PlayAnimDown, "wpanel"); end
function PlayAnimDown() PauseAnimation("wru"); RewindAnimation("wrd"); PlayAnimation("wrd"); end
function PlayAnimUp() PauseAnimation("wrd"); RewindAnimation("wru"); PlayAnimation("wru"); end
I have tested the Animations useing both Zero Edit and Code Consule in game. Any suggestions to what is wrong? |
|
The Outrider Lance Corporal
Messages : 36 Registration Date : 2011-01-15 Location : USA
| Subject: Re: [SOLVED]More trouble with Animations 4/9/2012, 1:42 am | |
| - Code:
-
doorup = OnObjectKill( function(object, killer) if GetEntityName(object) == "wpanel" then PauseAnimation("wru") RewindAnimation("wrd") PlayAnimation("wrd") end end )
doordown = OnObjectRepair( function(object, repairer) if GetEntityName(object) == "wpanel" then PauseAnimation("wrd") RewindAnimation("wru") PlayAnimation("wru") end end ) Source: http://www.gametoast.com/forums/viewtopic.php?f=27&t=12473 |
|
bonecrusher16O Lance Corporal
Messages : 35 Registration Date : 2011-07-08
| Subject: Re: [SOLVED]More trouble with Animations 4/9/2012, 3:33 pm | |
| |
|
Sponsored content
| Subject: Re: [SOLVED]More trouble with Animations | |
| |
|