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

Example

function onPlayerShootNPC( player, npc, weapon, bodypart )
{
	MessagePlayer( "onPlayerShootNPC fired", player );
}

This sample was generated from the signature – adapt the values to your gamemode.

Section: NPC events

Categories: Server events | NPC events