Difference between revisions of "DoDamage"
(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...") |
Tehbugerz0r (talk | contribs) |
||
Line 9: | Line 9: | ||
This function will do damage to the specified player. | 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 | + | NOTE: If you wish to be able to specify a player ID doing damage, use [[DoDamageBy]]. |
− | |||
==Examples== | ==Examples== | ||
Line 17: | Line 16: | ||
end; | end; | ||
</source> | </source> | ||
− | |||
− | |||
− | |||
− | |||
[[Category:Server Scripting]][[Category:Server Scripting Functions]] | [[Category:Server Scripting]][[Category:Server Scripting Functions]] |
Latest revision as of 08:02, 14 March 2013
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.
Examples
begin
DoDamage(1,4000); //Instantly kill player 1 (Will appear as 'You killed yourself')
end;