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!!!
Animate a alarm switch
Moderator: Moderators
turnon
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.
$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.
