Difference between revisions of "WD2 Documented Functions"
From Nomad DB
Line 2: | Line 2: | ||
== Game == | == Game == | ||
+ | === Player === | ||
<DynamicPageList> | <DynamicPageList> | ||
− | category = WD2 | + | category = WD2 Player |
+ | </DynamicPageList> | ||
+ | === Entity === | ||
+ | <DynamicPageList> | ||
+ | category = WD2 Entity | ||
+ | </DynamicPageList> | ||
+ | === Vehicle === | ||
+ | <DynamicPageList> | ||
+ | category = WD2 Vehicle | ||
</DynamicPageList> | </DynamicPageList> | ||
− | |||
== ScriptHook == | == ScriptHook == | ||
<DynamicPageList> | <DynamicPageList> | ||
category = WD2 ScriptHook Lua | category = WD2 ScriptHook Lua | ||
</DynamicPageList> | </DynamicPageList> |
Revision as of 14:40, 15 April 2020
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