I need a cog for a lvl, u press a button, an alarm goes off, and some enimys spawn and come over to the button, any ideas?
Mess with the best....Die like the rest.The New Jedi X Homepage
This is the static archive of the Massassi Forums. The forums are
closed indefinitely. Thanks for all the memories!
You can also download
Super Old Archived Message Boards
from when Massassi first started.
"View" counts are as of the day the forums were archived, and will no longer increase.
#01/2002 GBK Symbols Message Activated Message Timer Surface Switch Thing Ghost0=-1 Thing Ghost1=-1 Thing Ghost2=-1 Thing Ghost3=-1 Template Type Sound Alarm Int Loop_sound=0 #Loop sound? 0 = no. Flex Loop_time=30.0 #If loop, how long till stop? Int Channel=0 Local Int I=0 Local End Code Activated: If(Getsenderref() != Switch || Getwallcel(Switch) == 1) Stop; Setwallcel(Switch, 1); If(Loop_sound != 0) { Channel = Playsoundglobal(Alarm, 1.0, 0.0, 0); Settimer(Loop_time); } Else { Playsoundglobal(Alarm, 1.0, 0.0, 0x1); } For(I=0;I<2;I=I+1) { If(Ghost0 != -1) { AIsetmoveframe(Creatething(Type, Ghost0), 0); } } Stop; Timer: Stopsound(Channel, 0.1); Stop; End
#01/2002 GBK Symbols Message Activated Message Timer Surface Switch Thing Ghost0=-1 Thing Ghost1=-1 Thing Ghost2=-1 Thing Ghost3=-1 Template Type Sound Alarm Int Loop_sound=0 #Loop sound? 0 = no. Flex Loop_time=30.0 #If loop, how long till stop? Int Channel=0 Local Int I=0 Local End Code Activated: If(Getsenderref() != Switch || Getwallcel(Switch) == 1) Stop; Setwallcel(Switch, 1); If(Loop_sound != 0) { Channel = Playsoundglobal(Alarm, 1.0, 0.0, 0x1); Settimer(Loop_time); } Else { Playsoundglobal(Alarm, 1.0, 0.0, 0); } For(I=0;I<4;I=I+1) { If(Ghost0 != -1) { AIsetmoveframe(Creatething(Type, Ghost0), 0); } } Stop; Timer: Stopsound(Channel, 0.1); Stop; End