---
title: "180 dokumentov ima oznako ima oznako \"npc\" | open.mp"
canonical: https://omp.itsneufox.com/sl/docs/tags/npc
language: sl
---

# 180 dokumentov ima oznako ima oznako "npc"

[Poglej vse oznake](https://omp.itsneufox.com/sl/docs/tags)

[

## ConnectNPC

](https://omp.itsneufox.com/sl/docs/scripting/functions/ConnectNPC)

Connect an NPC to the server.

[

## GetMyPos

](https://omp.itsneufox.com/sl/docs/scripting/functions/GetMyPos)

Get position of the NPC

[

## IsPlayerNPC

](https://omp.itsneufox.com/sl/docs/scripting/functions/IsPlayerNPC)

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

[

## NPC Constants

](https://omp.itsneufox.com/sl/docs/scripting/resources/npc-constants)

Constants used in NPC functions and callbacks.

[

## NPC\_AddPointToPath

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_AddPointToPath)

Adds a waypoint to an NPC path.

[

## NPC\_AimAt

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_AimAt)

Makes an NPC aim at a specific position.

[

## NPC\_AimAtPlayer

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_AimAtPlayer)

Makes an NPC aim at a player.

[

## NPC\_ApplyAnimation

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_ApplyAnimation)

Applies a specific animation to an NPC.

[

## NPC\_ChangeNode

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_ChangeNode)

Changes the node an NPC is currently playing.

[

## NPC\_ClearAnimations

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_ClearAnimations)

Clears all animations from an NPC.

[

## NPC\_ClearPath

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_ClearPath)

Clears all points from an NPC path.

[

## NPC\_CloseNode

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_CloseNode)

Closes an NPC node, making it unavailable for use.

[

## NPC\_Create

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_Create)

Creates a new NPC.

[

## NPC\_CreatePath

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_CreatePath)

Creates a new NPC path.

[

## NPC\_Destroy

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_Destroy)

Destroys an NPC.

[

## NPC\_DestroyAllPath

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_DestroyAllPath)

Destroys all NPC paths.

[

## NPC\_DestroyPath

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_DestroyPath)

Destroys a specific NPC path.

[

## NPC\_EnableInfiniteAmmo

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_EnableInfiniteAmmo)

Enables or disables infinite ammo for an NPC.

[

## NPC\_EnableReloading

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_EnableReloading)

Enables or disables automatic reloading for an NPC.

[

## NPC\_EnterVehicle

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_EnterVehicle)

Makes an NPC enter a vehicle.

[

## NPC\_ExitVehicle

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_ExitVehicle)

Makes an NPC exit its current vehicle.

[

## NPC\_GetAll

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_GetAll)

Gets all NPC IDs and stores them in an array.

[

## NPC\_GetAmmo

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_GetAmmo)

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

[

## NPC\_GetAmmoInClip

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_GetAmmoInClip)

Gets the ammunition in the current clip of an NPC's weapon.

[

## NPC\_GetAnimation

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_GetAnimation)

Gets the current animation data of an NPC.

[

## NPC\_GetArmour

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_GetArmour)

Gets the armour value of an NPC.

[

## NPC\_GetCurrentPathPointIndex

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_GetCurrentPathPointIndex)

Gets the current path point index an NPC is moving towards.

[

## NPC\_GetCustomSkin

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_GetCustomSkin)

Gets the custom skin ID of an NPC.

[

## NPC\_GetEnteringVehicle

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_GetEnteringVehicle)

Gets the vehicle an NPC is currently entering.

[

## NPC\_GetEnteringVehicleID

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_GetEnteringVehicleID)

Gets the vehicle ID an NPC is currently entering.

[

## NPC\_GetEnteringVehicleSeat

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_GetEnteringVehicleSeat)

Gets the seat an NPC is entering in a vehicle.

[

## NPC\_GetFacingAngle

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_GetFacingAngle)

Gets the facing angle of an NPC.

[

## NPC\_GetFightingStyle

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_GetFightingStyle)

Gets the fighting style of an NPC.

[

## NPC\_GetHealth

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_GetHealth)

Gets the health value of an NPC.

[

## NPC\_GetInterior

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_GetInterior)

Gets the interior ID of an NPC.

[

## NPC\_GetKeys

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_GetKeys)

Gets the current key states of an NPC.

[

## NPC\_GetNodeInfo

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_GetNodeInfo)

Gets information about an NPC node.

[

## NPC\_GetNodePointCount

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_GetNodePointCount)

Gets the number of points in an NPC node.

[

## NPC\_GetNodePointPosition

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_GetNodePointPosition)

Gets the position of the current point in an NPC node.

[

## NPC\_GetNodeType

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_GetNodeType)

Gets the type of an NPC node.

[

## NPC\_GetPathCount

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_GetPathCount)

Gets the total number of NPC paths on the server.

[

## NPC\_GetPathPoint

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_GetPathPoint)

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

[

## NPC\_GetPathPointCount

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_GetPathPointCount)

Gets the number of points in an NPC path.

[

## NPC\_GetPlayerAimingAt

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_GetPlayerAimingAt)

Gets the ID of the player that an NPC is currently aiming at.

[

## NPC\_GetPlayerMovingTo

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_GetPlayerMovingTo)

Gets the ID of the player that an NPC is currently moving toward.

[

## NPC\_GetPos

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_GetPos)

Gets the position of an NPC.

[

## NPC\_GetPosMovingTo

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_GetPosMovingTo)

Gets the position that the NPC is currently moving toward.

[

## NPC\_GetRecordCount

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_GetRecordCount)

Gets the number of loaded NPC recording files.

[

## NPC\_GetRot

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_GetRot)

Gets the rotation of an NPC.

[

## NPC\_GetSkin

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_GetSkin)

Gets the skin/model ID of an NPC.

[

## NPC\_GetSpecialAction

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_GetSpecialAction)

Gets the current special action of an NPC.

[

## NPC\_GetSurfingObject

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_GetSurfingObject)

Gets the object an NPC is surfing on.

[

## NPC\_GetSurfingOffsets

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_GetSurfingOffsets)

Gets the surfing offset for an NPC.

[

## NPC\_GetSurfingPlayerObject

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_GetSurfingPlayerObject)

Gets the player object an NPC is surfing on.

[

## NPC\_GetSurfingVehicle

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_GetSurfingVehicle)

Gets the vehicle an NPC is surfing on.

[

## NPC\_GetVehicle

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_GetVehicle)

Gets the vehicle ID of an NPC's current vehicle.

[

## NPC\_GetVehicleGearState

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_GetVehicleGearState)

Gets the landing gear state of an NPC's aircraft.

[

## NPC\_GetVehicleHealth

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_GetVehicleHealth)

Gets the health of an NPC's vehicle.

[

## NPC\_GetVehicleHydraThrusters

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_GetVehicleHydraThrusters)

Gets the thruster direction of an NPC's Hydra vehicle.

[

## NPC\_GetVehicleID

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_GetVehicleID)

Gets the vehicle ID of an NPC's current vehicle.

[

## NPC\_GetVehicleSeat

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_GetVehicleSeat)

Gets the seat ID of an NPC in a vehicle.

[

## NPC\_GetVehicleTrainSpeed

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_GetVehicleTrainSpeed)

Gets the train speed for an NPC driving a train.

[

## NPC\_GetVelocity

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_GetVelocity)

Gets the velocity of an NPC.

[

## NPC\_GetVirtualWorld

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_GetVirtualWorld)

Gets the virtual world an NPC is in.

[

## NPC\_GetWeapon

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_GetWeapon)

Gets the current weapon an NPC is holding.

[

## NPC\_GetWeaponAccuracy

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_GetWeaponAccuracy)

Gets the accuracy setting for an NPC's weapon.

[

## NPC\_GetWeaponActualClipSize

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_GetWeaponActualClipSize)

Gets the actual (default) clip size for an NPC's weapon.

[

## NPC\_GetWeaponActualReloadTime

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_GetWeaponActualReloadTime)

Gets the actual (default) reload time for an NPC's weapon.

[

## NPC\_GetWeaponClipSize

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_GetWeaponClipSize)

Gets the clip size setting for an NPC's weapon.

[

## NPC\_GetWeaponReloadTime

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_GetWeaponReloadTime)

Gets the reload time of an NPC's weapon.

[

## NPC\_GetWeaponShootTime

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_GetWeaponShootTime)

Gets the shoot time of an NPC's weapon.

[

## NPC\_GetWeaponSkillLevel

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_GetWeaponSkillLevel)

Gets the weapon skill level of an NPC.

[

## NPC\_GetWeaponState

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_GetWeaponState)

Gets the weapon state of an NPC.

[

## NPC\_HasPathPointInRange

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_HasPathPointInRange)

Checks if a path has any point within the specified range from given coordinates.

[

## NPC\_IsAiming

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_IsAiming)

Checks if an NPC is currently aiming.

[

## NPC\_IsAimingAtPlayer

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_IsAimingAtPlayer)

Checks if an NPC is aiming at a specific player.

[

## NPC\_IsAnyStreamedIn

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_IsAnyStreamedIn)

Checks if an NPC is streamed in for any player.

[

## NPC\_IsDead

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_IsDead)

Checks if an NPC is dead.

[

## NPC\_IsEnteringVehicle

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_IsEnteringVehicle)

Checks if an NPC is currently entering a vehicle.

[

## NPC\_IsInfiniteAmmoEnabled

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_IsInfiniteAmmoEnabled)

Checks if infinite ammo is enabled for an NPC.

[

## NPC\_IsInvulnerable

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_IsInvulnerable)

Checks if an NPC is invulnerable to damage.

[

## NPC\_IsMeleeAttacking

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_IsMeleeAttacking)

Checks if an NPC is performing a melee attack.

[

## NPC\_IsMoving

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_IsMoving)

Checks if an NPC is currently moving.

[

## NPC\_IsMovingToPlayer

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_IsMovingToPlayer)

Checks if an NPC is moving toward a specific player.

[

## NPC\_IsNodeOpen

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_IsNodeOpen)

Checks if an NPC node is open.

[

## NPC\_IsPlaybackPaused

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_IsPlaybackPaused)

Checks if an NPC's playback is paused.

[

## NPC\_IsPlayingNode

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_IsPlayingNode)

Checks if an NPC is currently playing a node.

[

## NPC\_IsPlayingNodePaused

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_IsPlayingNodePaused)

Checks if an NPC's node playing is currently paused.

[

## NPC\_IsPlayingPlayback

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_IsPlayingPlayback)

Checks if an NPC is playing a recording playback.

[

## NPC\_IsReloadEnabled

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_IsReloadEnabled)

Checks if automatic reloading is enabled for an NPC.

[

## NPC\_IsReloading

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_IsReloading)

Checks if an NPC is currently reloading their weapon.

[

## NPC\_IsShooting

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_IsShooting)

Checks if an NPC is currently shooting.

[

## NPC\_IsSpawned

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_IsSpawned)

Checks if an NPC is spawned in the game world.

[

## NPC\_IsStreamedIn

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_IsStreamedIn)

Checks if an NPC is streamed in for a specific player.

[

## NPC\_IsValid

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_IsValid)

Checks if an NPC ID is valid.

[

## NPC\_IsValidPath

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_IsValidPath)

Checks if a path ID is valid and exists.

[

## NPC\_IsValidRecord

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_IsValidRecord)

Checks if a recording file is valid and loaded.

[

## NPC\_IsVehicleSirenUsed

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_IsVehicleSirenUsed)

Checks if an NPC is using the vehicle siren.

[

## NPC\_Kill

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_Kill)

Kills an NPC with a specific weapon/reason.

[

## NPC\_LoadRecord

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_LoadRecord)

Loads an NPC recording file for playback.

[

## NPC\_MeleeAttack

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_MeleeAttack)

Makes an NPC perform a melee attack.

[

## NPC\_Move

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_Move)

Makes an NPC move to a specific position.

[

## NPC\_MoveByPath

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_MoveByPath)

Makes an NPC follow a predefined path.

[

## NPC\_MoveToPlayer

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_MoveToPlayer)

Makes an NPC move toward and follow a player.

[

## NPC\_OpenNode

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_OpenNode)

Opens an NPC node for use.

[

## NPC\_PausePlayback

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_PausePlayback)

Pauses or resumes an NPC's recording playback.

[

## NPC\_PausePlayingNode

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_PausePlayingNode)

Pauses an NPC's node navigation.

[

## NPC\_PlayNode

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_PlayNode)

Makes an NPC navigate through predefined navigation nodes.

[

## NPC\_PutInVehicle

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_PutInVehicle)

Puts an NPC into a vehicle at a specific seat.

[

## NPC\_RemoveFromVehicle

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_RemoveFromVehicle)

Removes an NPC from their current vehicle.

[

## NPC\_RemovePointFromPath

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_RemovePointFromPath)

Removes a waypoint from an NPC path.

[

## NPC\_ResetAnimation

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_ResetAnimation)

Resets an NPC's current animation to default.

[

## NPC\_ResetSurfingData

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_ResetSurfingData)

Resets all surfing data for an NPC.

[

## NPC\_Respawn

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_Respawn)

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

[

## NPC\_ResumePlayingNode

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_ResumePlayingNode)

Resumes paused node navigation for an NPC.

[

## NPC\_SetAmmo

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_SetAmmo)

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

[

## NPC\_SetAmmoInClip

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_SetAmmoInClip)

Sets the amount of ammo in an NPC's weapon clip.

[

## NPC\_SetAngleToPlayer

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_SetAngleToPlayer)

Rotates an NPC to face a specific player.

[

## NPC\_SetAngleToPos

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_SetAngleToPos)

Rotates an NPC so it faces a specific world position.

[

## NPC\_SetAnimation

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_SetAnimation)

Sets an animation for an NPC by animation ID.

[

## NPC\_SetArmour

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_SetArmour)

Sets an NPC's armour level.

[

## NPC\_SetFacingAngle

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_SetFacingAngle)

Sets an NPC's facing angle.

[

## NPC\_SetFightingStyle

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_SetFightingStyle)

Sets an NPC's fighting style for melee combat.

[

## NPC\_SetHealth

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_SetHealth)

Sets the health value of an NPC.

[

## NPC\_SetInterior

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_SetInterior)

Sets the interior of an NPC.

[

## NPC\_SetInvulnerable

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_SetInvulnerable)

Sets whether an NPC is invulnerable to damage.

[

## NPC\_SetKeys

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_SetKeys)

Sets the key states for an NPC.

[

## NPC\_SetNodePoint

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_SetNodePoint)

Sets a point in an NPC node.

[

## NPC\_SetPos

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_SetPos)

Sets the position of an NPC.

[

## NPC\_SetRot

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_SetRot)

Sets an NPC's rotation on all axes.

[

## NPC\_SetSkin

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_SetSkin)

Sets an NPC's skin model.

[

## NPC\_SetSpecialAction

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_SetSpecialAction)

Sets an NPC's special action state.

[

## NPC\_SetSurfingObject

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_SetSurfingObject)

Sets the object an NPC is surfing on.

[

## NPC\_SetSurfingOffsets

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_SetSurfingOffsets)

Sets the surfing offset for an NPC.

[

## NPC\_SetSurfingPlayerObject

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_SetSurfingPlayerObject)

Sets the player object an NPC is surfing on.

[

## NPC\_SetSurfingVehicle

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_SetSurfingVehicle)

Sets the vehicle an NPC is surfing on.

[

## NPC\_SetVehicleGearState

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_SetVehicleGearState)

Sets an NPC's aircraft landing gear state.

[

## NPC\_SetVehicleHealth

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_SetVehicleHealth)

Sets the health of an NPC's vehicle.

[

## NPC\_SetVehicleHydraThrusters

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_SetVehicleHydraThrusters)

Sets the Hydra thruster direction for an NPC's vehicle.

[

## NPC\_SetVehicleTrainSpeed

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_SetVehicleTrainSpeed)

Sets the speed of an NPC's train vehicle.

[

## NPC\_SetVelocity

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_SetVelocity)

Sets the velocity of an NPC.

[

## NPC\_SetVirtualWorld

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_SetVirtualWorld)

Sets an NPC's virtual world.

[

## NPC\_SetWeapon

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_SetWeapon)

Sets an NPC's current weapon.

[

## NPC\_SetWeaponAccuracy

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_SetWeaponAccuracy)

Sets the accuracy of a specific weapon for an NPC.

[

## NPC\_SetWeaponClipSize

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_SetWeaponClipSize)

Sets the clip size for an NPC's weapon.

[

## NPC\_SetWeaponReloadTime

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_SetWeaponReloadTime)

Sets the reload time for an NPC's weapon.

[

## NPC\_SetWeaponShootTime

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_SetWeaponShootTime)

Sets the shooting interval for an NPC's weapon.

[

## NPC\_SetWeaponSkillLevel

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_SetWeaponSkillLevel)

Sets the weapon skill level for an NPC.

[

## NPC\_SetWeaponState

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_SetWeaponState)

Sets the weapon state of an NPC.

[

## NPC\_Shoot

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_Shoot)

Makes an NPC fire a weapon shot.

[

## NPC\_Spawn

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_Spawn)

Spawns an NPC into the game world.

[

## NPC\_StartPlayback

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_StartPlayback)

Starts playing a recording file for an NPC.

[

## NPC\_StartPlaybackEx

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_StartPlaybackEx)

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

[

## NPC\_StopAim

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_StopAim)

Stops an NPC from aiming.

[

## NPC\_StopMeleeAttack

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_StopMeleeAttack)

Stops an NPC from performing melee attacks.

[

## NPC\_StopMove

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_StopMove)

Stops an NPC from moving.

[

## NPC\_StopPlayback

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_StopPlayback)

Stops an NPC from playing a recording.

[

## NPC\_StopPlayingNode

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_StopPlayingNode)

Stops an NPC from playing a node.

[

## NPC\_UnloadAllRecords

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_UnloadAllRecords)

Unloads all NPC recording files from memory.

[

## NPC\_UnloadRecord

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_UnloadRecord)

Unloads a specific NPC recording from memory.

[

## NPC\_UpdateNodePoint

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_UpdateNodePoint)

Updates an NPC to a specific point in the currently playing node.

[

## NPC\_UseVehicleSiren

](https://omp.itsneufox.com/sl/docs/scripting/functions/NPC_UseVehicleSiren)

Makes an NPC use or stop using a vehicle siren.

[

## OnNPCChangeNode

](https://omp.itsneufox.com/sl/docs/scripting/callbacks/OnNPCChangeNode)

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

[

## OnNPCCreate

](https://omp.itsneufox.com/sl/docs/scripting/callbacks/OnNPCCreate)

This callback is called when an NPC is successfully created.

[

## OnNPCDeath

](https://omp.itsneufox.com/sl/docs/scripting/callbacks/OnNPCDeath)

This callback is called when an NPC dies.

[

## OnNPCDestroy

](https://omp.itsneufox.com/sl/docs/scripting/callbacks/OnNPCDestroy)

This callback is called when an NPC is destroyed.

[

## OnNPCFinishMove

](https://omp.itsneufox.com/sl/docs/scripting/callbacks/OnNPCFinishMove)

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

[

## OnNPCFinishMovePath

](https://omp.itsneufox.com/sl/docs/scripting/callbacks/OnNPCFinishMovePath)

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

[

## OnNPCFinishMovePathPoint

](https://omp.itsneufox.com/sl/docs/scripting/callbacks/OnNPCFinishMovePathPoint)

Called when an NPC finishes moving to a specific point in a path.

[

## OnNPCFinishNode

](https://omp.itsneufox.com/sl/docs/scripting/callbacks/OnNPCFinishNode)

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

[

## OnNPCFinishNodePoint

](https://omp.itsneufox.com/sl/docs/scripting/callbacks/OnNPCFinishNodePoint)

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

[

## OnNPCGiveDamage

](https://omp.itsneufox.com/sl/docs/scripting/callbacks/OnNPCGiveDamage)

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

[

## OnNPCPlaybackEnd

](https://omp.itsneufox.com/sl/docs/scripting/callbacks/OnNPCPlaybackEnd)

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

[

## OnNPCPlaybackStart

](https://omp.itsneufox.com/sl/docs/scripting/callbacks/OnNPCPlaybackStart)

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

[

## OnNPCRespawn

](https://omp.itsneufox.com/sl/docs/scripting/callbacks/OnNPCRespawn)

This callback is called when an NPC respawns.

[

## OnNPCSpawn

](https://omp.itsneufox.com/sl/docs/scripting/callbacks/OnNPCSpawn)

This callback is called when an NPC spawns.

[

## OnNPCTakeDamage

](https://omp.itsneufox.com/sl/docs/scripting/callbacks/OnNPCTakeDamage)

This callback is called when an NPC takes damage.

[

## OnNPCWeaponShot

](https://omp.itsneufox.com/sl/docs/scripting/callbacks/OnNPCWeaponShot)

This callback is called when an NPC fires a weapon.

[

## OnNPCWeaponStateChange

](https://omp.itsneufox.com/sl/docs/scripting/callbacks/OnNPCWeaponStateChange)

This callback is called when an NPC's weapon state changes.

[

## SetMyPos

](https://omp.itsneufox.com/sl/docs/scripting/functions/SetMyPos)

Set position of the NPC
