0 Members and 1 Guest are viewing this topic.
Dist := Distance(GetPlayerStat(ID,'X'),GetPlayerStat(ID,'Y'),GetObjectStat(s,'X'),GetObjectStat(s,'Y')); if (Getobjectstat(s,'style')=16) and (Dist <= 30) then begin if SoldierHpLeft[ID] < soldier[ID].maxhealth then begin SoldierHpLeft[ID] := soldier[ID].maxhealth; KillObject(s); end; end;