WD2 Documented Functions
From Nomad DB
This is a list of documented Lua script functions. Check out the full list.
Contents
Game
Player
- GetLocalCameraId
- GetPlayerIdFromPawnId
- ForceVehicleStop
- ForceUserOutOfRC
- ForceUserOutOfCamera
- SendDamageToEntity
- GetPawnIdFromPlayerId
- PutPlayerInVehicle
- GetNumberOfPlayers
- GameOver
- GetPlayerNameDebug
- GetPlayerIdFromPlayerIndex
- GetLocalPlayerId
- GetLocalPlayerEntityId
Entity
- GetLocalCameraId
- StartEntityNetHackHighlight
- StopEntityNetHackHighlight
- SetPhysicsEnabled
- GetPlayerIdFromPawnId
- GetReticleHitLocation
- GetReticleHitEntity
- CalculateDistanceViaRoad
- GetDistance2D
- GetDistance3D
- SetDoorLockState
- CloseDoor
- StartEntityHighlight
- OpenDoor
- ForceVehicleStop
- ForceUserOutOfRC
- ForceUserOutOfCamera
- StopEntityHighlight
- ShowCameraClippedEntity
- HideCameraClippedEntity
- ShowEntity
- HideEntity
- FelonyStartChaseObj
- FelonyStartChase
- RemoveEntity
- Affiliation
- CAIAgentManager:GetAIAgentsOfGroupFromLUA v2
- SendDamageToEntity
- GetPawnIdFromPlayerId
- PutPlayerInVehicle
- ForceHackIngredient
- StopHelicopterBhv
- StartHelicopterBhv
- SpawnEntityFromArchetype
- GetNumberOfPlayers
- GameOver
- TeleportEntity
- GetPlayerNameDebug
- GetEntityName
- World Loading Unit
- GetPlayerIdFromPlayerIndex
- GetLocalPlayerId
- Pawn
- GetLocalPlayerEntityId
- IsAlive
- GetCurrentVehicleEntityId
- GetInvalidEntityId
- EntityId
- GetEntityPosition
- Entity
Vehicle
ScriptHook
- Timer.RemoveIfExists
- Timer.Remove
- Timer.Create
- D3d.World2Screen
- D3d.DrawRect
- D3d.MeasureText
- D3d.DrawText
- D3d.SetFont
- D3d.SetColor
- UI.SimpleTextInput
- ScriptHook.EntityHasComponent
- ScriptHook.GetAllEntities
- ScriptHook.ShowNotification
- ScriptHook.SetLocalPlayerNoclip
- ScriptHook.HasLocalPlayerNoclip
- ScriptHook.RepairLocalPlayerVehicle
- UISimpleMenu:IsEntryEnabled
- UISimpleMenu:SetEntryEnabled
- UISimpleMenu:AddButton
- UISimpleMenu:Toggle
- UISimpleMenu:IsActive
- UISimpleMenu:Deactivate
- UISimpleMenu:Activate
- UISimpleMenu:GetTitle
- UISimpleMenu:SetTitle
- UI.SimpleMenu
- WD2 ScriptHook: Script Table