跳至主要内容

180 篇文件帶有標籤「npc」

檢視所有標籤

IsPlayerNPC

Check if a player is an actual player or an NPC.

NPC_AimAt

Makes an NPC aim at a specific position.

NPC_GetAll

Gets all NPC IDs and stores them in an array.

NPC_GetAmmo

Gets the ammunition amount for an NPC's current weapon.

NPC_GetPathPoint

Gets the coordinates and stop range of a specific point in an NPC path.

NPC_Kill

Kills an NPC with a specific weapon/reason.

NPC_Move

Makes an NPC move to a specific position.

NPC_PlayNode

Makes an NPC navigate through predefined navigation nodes.

NPC_Respawn

Respawns an NPC to their spawn position, resetting their state.

NPC_SetAmmo

Sets the ammunition count for an NPC's current weapon.

NPC_StartPlaybackEx

Starts playback for an NPC using a pre-loaded recording ID with extended options.

OnNPCChangeNode

This callback is called when an NPC attempts to change from one navigation node to another during node-based movement.

OnNPCCreate

This callback is called when an NPC is successfully created.

OnNPCDeath

This callback is called when an NPC dies.

OnNPCDestroy

This callback is called when an NPC is destroyed.

OnNPCFinishMove

This callback is called when an NPC finishes moving to its target destination.

OnNPCFinishMovePath

This callback is called when an NPC finishes moving along a predefined path.

OnNPCFinishNode

This callback is called when an NPC finishes navigating a complete node.

OnNPCFinishNodePoint

This callback is called when an NPC reaches a specific point during node-based navigation.

OnNPCGiveDamage

This callback is called when an NPC gives damage to a player.

OnNPCPlaybackEnd

This callback is called when an NPC finishes playback of a recorded file.

OnNPCSpawn

This callback is called when an NPC spawns.