I'm trying to damage all players in a sector in a multiplayer game. I'm using this code, but it isn't working. Is there a better way? Did I make a simple mistake? Thanks for any help.
Code:
pulse:
print("pulsing");
thingToDamage = firstThingInSector(doctorSector);
damageThing(thingToDamage, damageAmount, 0x2, doctor);
for (i=0; i<getSectorThingCount(doctorSector)-1; i=i+1) {
thingToDamage = nextThingInSector(doctorSector);
damageThing(thingToDamage, damageAmount, 0x2, doctor);
}
return;KOP_blujay
Just dancin'...and singin'...in the Force.
Just dancin'...and singin'...in the Force.


It looks sloppy IMHO ;P