GetLocalPlayerEntityId

From Nomad DB
Revision as of 17:26, 14 April 2020 by Jan (talk | contribs) (Created page with "This functions return the Entity Id of the local player. The returned id should be checked against the Invalid Entity Id. == Syntax == <pre> GetLocalPlayerEn...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

Related Pages