Page 1 of 1
Animate a alarm switch
Posted: Tue Apr 06, 2004 6:08 am
by durin
I have two doors than open from a alarm switch and it works but when open or close the door from the alarm switch, i put a sound (it works) and a animation:
$switch_door1 anim turn // this doesnt work
$switch_door1 playsound alarm_switch // this works
What can i do for animate the switch???
Thx for the help....
Cya mates!!!
Posted: Tue Apr 06, 2004 6:12 am
by Gizmo
animations
{
idle alarm_idleoff.skc
idleoff alarm_idleoff.skc
idleon alarm_idleoff.skc
turnon alarm_turnon.skc
turnoff alarm_turnoff.skc
}
==> Try turnon i.s.o. turn
turnon
Posted: Tue Apr 06, 2004 7:59 am
by tltrude
Use:
$switch_door1 anim turnoff
the nomal look of the swith is on (up), so you have to turn it off to get it to move. You can, however, turn the swith off under "level waittill prespawn", with the above line, and then turn it on in your door thread with the line below.
$switch_door1 anim turnon
The animation names can be seen when you highlight the switch and hit key N in the editor. Click on the Anim: +- buttons in its entity window and the names will show up by "testanim". The switch arm should move in your editor 3D view window when you click the animation buttons.
Posted: Tue Apr 06, 2004 2:20 pm
by durin
thanks a lot,mates!!!...i'll try it when i arrive at home...
thanks again...