DoDamage

From Soldat Community Wiki
Revision as of 17:26, 14 August 2012 by Shoozza (talk | contribs) (Created page with "===From the Scripting Manual=== ''procedure DoDamage(ID: byte; Damage: integer);'' '''Parameter Info:''' ID (Byte): Player ID to do damage to. Damage (Integer): Amount...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

From the Scripting Manual

procedure DoDamage(ID: byte; Damage: integer);

Parameter Info:
 ID (Byte): Player ID to do damage to.
 Damage (Integer): Amount of damage to do (4000 to get a definate kill)

Description:
 This function will do damage to the specified player.

 NOTE: If you wish to be able to specify a player ID doing damage, use DoDamageBy:
 procedure DoDamageBy(ID,Shooter: Byte; Damage: Integer);

Examples

begin
    DoDamage(1,4000); //Instantly kill player 1 (Will appear as 'You killed yourself')
end;


External Links