I'm new at this, and I think this cog looks right, but it doesn't work. Any suggestions?
Code:
# Jedi Knight Cog Script # # floorclear.COG # Controlls thrust in sector 22 # Lets the player fall back down the lift tube # # This Cog is Not supported by LucasArts Entertainment Co symbols message startup message activated surface trigswitch #the switch surface floor #the floor to be opened sound beep #the sound played after the switch is switched end # ======================================================================================== code startup: SetSectorThrust(22,0/0/1,10); #Starts the thrust in sector 22 activated: SetAdjoinFlags(floor,0x2); #sets the floor as passable SetSectorThrust(22,0/0/1,-1); #turns off thrust in sector 22 PlaySound(beep); #plays a sound Sleep(10); #waits 10 seconds SetAdjoinFlags(floor,0x1); #turns the floor back on SetSectorThrust(22,0/0/1,10); #turns the thrust back on # ........................................................................................ end
I've got a website. It's at Geocities because I'm too cheap to get my own site.