Difference between revisions of "DoDamageBy"

From Soldat Community Wiki
Jump to: navigation, search
(Created page with "===From the Scripting Manual=== ''procedure DoDamageBy(ID,Shooter: Byte; Damage: Integer);'' '''Parameter Info:''' ID (Byte): Player ID to do damage to. Shooter (Byte)...")
 
(No difference)

Latest revision as of 09:00, 14 March 2013

From the Scripting Manual

procedure DoDamageBy(ID,Shooter: Byte; Damage: Integer);

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

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

Examples

begin
    DoDamageBy(1,2,4000); //Instantly kill player 1 (Will appear as 'Killed by Player 2')
end;

See also