TActivePlayer.Damage

From Soldat Community Wiki
Revision as of 15:59, 1 July 2013 by Squiddy (talk | contribs) (Description)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
procedure Damage(Shooter: Byte; Damage: Integer)
 Shooter: player dealing the damage
 Damage: amount of damage dealt

Description

Injures a player.
If damage is high enough to kill the player, he will receive the "Killed by <Shooter>" message.

Example

var i: byte;
begin
  for i := 1 to 32 do if Players[i].Active then
    Players[i].Damage(i,4000); //kills all active players, BOOYEAH
end;