Scripting/Server/Events/onPlayerKill
One player killed another. bodyPartID is a BODYPART_* value.
Syntax
onPlayerKill(killer, victim, weaponID, bodyPartID)Arguments
- Player killer
- Player victim
- int weaponID
- int bodyPartID –
bodyPartIDis aBODYPART_*value.
Example
function onPlayerKill( killer, victim, weaponID, bodyPartID )
{
Message( killer.Name + " killed " + victim.Name );
killer.Score = killer.Score + 1;
}Related pages
- onPlayerRequestSpawn
- onPlayerSpawn
- onPlayerDeath
- onPlayerBusted
- onPlayerShoot
- onPlayerActionChange
- onPlayerShotPlayer
- onPlayerWeaponChange
- onPlayerUseDetonator
- onPlayerShootObject
- onPlayerCheat
- onPlayerCLEO
Section: Spawning, deaths and combat
Categories: Server events | Spawning, deaths and combat