it is prolly some little error that i just looked over but then there is the occasion when my cogs are completely wrong. HOpe you guys can find my error. Thanks
Code:
# Jedi Knight Cog Script # # FORCE_SEEING.COG # # [Scortar] # This Cog is Not supported by LucasArts Entertainment Co symbols thing victim local thing player local int x local int maxX local int damage=10000000000000000 local message activated message deactivated message pulse end # ======================================================================================== code activated: SetInvActivated(player, 23, 1); player = GetLocalPlayerTHing(); x = 0; SetPulse(.5); return; # ........................................................................................ pulse: PrintInt(maxX); PrintInt(x); maxX = GetThingCount(GetThingSector(player)); If (x == 0); { victim = FirstThingInSector(GetThingSector(player)); x = x + 1; DamageThing(victim, damage, 0x2, player); } else if (x != 0 && x <= maxX); { victim = NextThingInSector(GetThingSector(player)); x = x + 1; DamageThing(victim, damage, 0x2, player); } else if (x > maxX) { x = 0; } return; # ........................................................................................ deactivated: SetInvActivated(player, 23, 0); return; end
roses are red, violets are blue, I am schizophrenic, and I am too!