- Documentation
- Shared functions
- getBodyPartName
Function
getBodyPartName
Returns the English name of a body part by its damage number (3-9): Torso, Ass, Left Arm, Right Arm, Left Leg, Right Leg, Head.
Syntax
string getBodyPartName(int bodyPartID)Arguments
bodyPartIDint- Body part number.
Returns
The name or false.
Example
addEventHandler("onPlayerDamage", root, function(attacker, weapon, bodypart, loss)
outputChatBox("Trafienie w: " .. tostring(getBodyPartName(bodypart)), source)
end)