Scripting/Server/Events/onPlayerShootNPC
A player shot an NPC. For instant-hit weapons (Colt-45, Uzi, AK-47, M16) the body part is reported as the torso.
Syntax
onPlayerShootNPC(player, npc, weapon, bodypart)Arguments
- Player player
- any npc
- int weapon
- int bodypart
Example
function onPlayerShootNPC( player, npc, weapon, bodypart )
{
MessagePlayer( "onPlayerShootNPC fired", player );
}This sample was generated from the signature – adapt the values to your gamemode.
Related pages
Section: NPC events
Categories: Server events | NPC events