Zum Hauptinhalt springen

190 docs getaggt mit "npc"

Alle Tags anzeigen

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.

OnClientMessage

Dieses Callback wird ausgeführt wenn ein NPC eine ClientMessage erkennt.

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.

OnRecordingPlaybackEnd

This callback is called when a recorded file being reproduced with StartRecordingPlayback has reached to its end.

SendChat

This will send a player text by the bot, just like using SendPlayerMessageToAll, but this function is to be used inside the NPC scripts.

SendCommand

This will force the NPC to write a desired command, and this way, getting the effects it would produce.

StopRecordingPlayback

This will stop the current .rec file which is being ran by the NPC, making it stay idle until some other order is given.