Code:
# Jedi Knight Cog Script # # ITEM_FIELDLIGHT.COG # # INVENTORY Script - Field Light # # [CYW & YB] # # (C) 1997 LucasArts Entertainment Co. All Rights Reserved symbols thing player int actorFlags message activated message pulse message killed sound lightActivate=activate04.wav sound lightDeactivate=deactivate04.wav int mode=0 local end code activated: player = GetSourceRef(); mode = mode + 1; if(mode > 3) mode = 0; if (mode == 1) SetActorExtraSpeed(player, 1); Print("Speed 1"); else if(mode == 2) SetActorExtraSpeed(player, 2); Print("Speed 2"); else if(mode == 3) SetActorExtraSpeed(player, 3); Print("Speed 3"); return; end
When I add the SetActorExtraSpeed() lines, it dosen't work. It works fine without them though.
Any ideas? This seems quite strange...
ReT