Difference between revisions of "GetLocalCameraId"

From Nomad DB
(Created page with "Retrieves the ID of the local player's camera entity. == Syntax == <syntaxhighlight lang="lua"> GetLocalCameraId(playerEntityId) </syntaxhighlight> * '''Returns...")
 
 
Line 5: Line 5:
 
GetLocalCameraId(playerEntityId)
 
GetLocalCameraId(playerEntityId)
 
</syntaxhighlight>
 
</syntaxhighlight>
 
+
* '''playerEntityId''' (string): The [[EntityId|ID]] of the player to get the camera for, can only be the [[GetLocalPlayerEntityId|local player]]
 
* '''Returns''': [[EntityId]]
 
* '''Returns''': [[EntityId]]
  
Line 14: Line 14:
  
 
== Related Pages ==
 
== Related Pages ==
 +
* [[GetLocalPlayerEntityId]]
 
* [[EntityId]]
 
* [[EntityId]]
  
 
[[Category:WD2 Lua]] [[Category: WD2 Entity]] [[Category: WD2 Player]]
 
[[Category:WD2 Lua]] [[Category: WD2 Entity]] [[Category: WD2 Player]]

Latest revision as of 16:57, 18 April 2020

Retrieves the ID of the local player's camera entity.

Syntax

GetLocalCameraId(playerEntityId)
  • playerEntityId (string): The ID of the player to get the camera for, can only be the local player
  • Returns: EntityId

Example

GetLocalCameraId(GetLocalPlayerEntityId())

Related Pages