OnNPCDeath: Difference between revisions
From Onset Developer Wiki
Created page with "{{Info|Event|Server|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|OnNPCDeath}} {{FuncParameters}} == Example == __EDIT_ME__ {{RelatedFunctions}} {{ServerEvents}}" |
No edit summary |
||
Line 3: | Line 3: | ||
{{FuncDescription|__EDIT_ME__}} | {{FuncDescription|__EDIT_ME__}} | ||
{{FuncSyntax|OnNPCDeath}} | {{FuncSyntax|OnNPCDeath(npc, player)}} | ||
{{FuncParameters}} | {{FuncParameters}} | ||
{{FuncParam|npc|The npc that died.}} | |||
{{FuncParam|player|Instigator, 0 if not killed by a player.}} | |||
== Example == | == Example == | ||
__EDIT_ME__ | __EDIT_ME__ |
Revision as of 14:57, 26 September 2019
Description
__EDIT_ME__
Syntax
OnNPCDeath(npc, player)
Parameters
- npc
The npc that died. - player
Instigator, 0 if not killed by a player.
Example
__EDIT_ME__
See also
Player
- OnPlayerServerAuth
- OnPlayerSteamAuth
- OnPlayerDownloadFile
- OnPlayerStreamIn
- OnPlayerStreamOut
- OnPlayerPickupHit
- OnPlayerJoin
- OnPlayerQuit
- OnPlayerSpawn
- OnPlayerDeath
- OnPlayerWeaponShot
- OnPlayerDamage
- OnPlayerChat
- OnPlayerChatCommand
- OnPlayerInteractDoor
- OnPlayerChangeDimension
Vehicle
- OnPlayerEnterVehicle
- OnPlayerLeaveVehicle
- OnPlayerStateChange
- OnVehicleRespawn
- OnVehicleStreamIn
- OnVehicleStreamOut
- OnVehicleDamage
- OnVehicleChangeDimension
- OnVehicleCreated
- OnVehicleDestroyed
Game
Package
NPC
- OnNPCReachTarget
- OnNPCDamage
- OnNPCSpawn
- OnNPCDeath
- OnNPCStreamIn
- OnNPCStreamOut
- OnNPCChangeDimension
- OnNPCCreated
- OnNPCDestroyed
Object
- OnObjectStopMoving
- OnObjectChangeDimension
- OnObjectCreated
- OnObjectDestroyed
- OnObjectStreamIn
- OnObjectStreamOut