GetLocalPlayerEntityId
From Nomad DB
This functions return the Entity Id of the local player. The returned id should be checked against the Invalid Entity Id.
Syntax
GetLocalPlayerEntityId()
Example
The example below checks to see if the Entity Id for the player is valid.
local lplayerId = GetLocalPlayerEntityId() if lplayerId == GetInvalidEntityId() then print("Local Player is valid") else print("Invalid Local Player") end