Its very scary when a cog, clean checked by Parsec, just flat out refuses to work. NO print statements appear, nothing moves. It just simply won't work! I'd bet its something small, that I missed and it'll make me look n00bish, but I jsut can't get it to work. And watch my useage of the w00tage code tags
------------------
The Sniper Missions. Current project, The Sniper Missions
The Magician Saber System.
Code:
Remember kids, only dumb***es don't use code tags. # Jedi Knight Cog Script # # SECRET_ELEV.cog # # Elevator under the bed in Inflitration. Moves by touched and the call switch. # Bed moves at same speed as elevator. # # [DP] # symbols message entered message activate message arrived message timer surface call thing elevator thing bed flex start_wait=0.1 flex sleeptime=3 flex speed=4 sound wav0=Activate02.wav end # ======================================================================================== code Entered: Print("Entered: called"); If((GetSenderRef() != elevator)||(GetCurFrame(elevator) != 0)) Return; Sleep(start_wait); MoveToFrame(elevator, 1, speed); Return; # ........................................................................................ Activate: Print("Activate: called"); If(GetSenderRef() == bed) { If(GetCurFrame(bed) == 0) MoveToFrame(bed, 1, speed); } Else { If(GetWallCel(call) == 1) Return; SetWallCel(call, 1); PlaySoundPos(wav0, SurfaceCenter(call), 0.6, -1, -1, 0); MoveToFrame(elevator, 1, speed); } Return; # ........................................................................................ Arrived: If(GetSourceRef() == bed) Return; If(GetCurFrame(elevator) == 0) { SetWallCel(call, 0); PlaySoundPos(wav0, SurfaceCenter(call), 0.6, -1, -1, 0); } Else SetTimer(sleeptime); Return; # ........................................................................................ Timer: MoveToFrame(elevator, 0, speed); Return; end
------------------
The Sniper Missions. Current project, The Sniper Missions
The Magician Saber System.
Major projects working on:
SATNRT, JK Pistol Mod, Aliens TC, Firearms
Completed
Judgement Day (HLP), My level pack
SATNRT, JK Pistol Mod, Aliens TC, Firearms
Completed
Judgement Day (HLP), My level pack