Posted: Wed Apr 13, 2005 7:33 pm
of course you think its simple, you wrote it lol. yea im gunna try it out and stuff like that. Thnx for your patience and time 
MoHAA Mapping
http://map.moh-central.net/forum/
Code: Select all
//------------------------
//red alarm switch anim routine
//------------------------
switch_move:
while(1)
{
$swtrig waittill trigger
if (level.switch_pos==0) // 0=up 1=down
{
$swtrig anim turnon
$swtrig playsound subpen_lever
$swtrig anim waittill animdone
level.switch_pos = 1
}
else
{
$swtrig anim turnoff
$swtrig playsound subpen_lever
$swtrig anim waittill animdone
level.switch_pos = 0
}
waitframe
}
end