GetEntityVirtualWorld
The virtual world the entity is replicated in.
Syntax
Section titled “Syntax”GetEntityVirtualWorld(id)| Parameter | Type | |
|---|---|---|
id |
number | the entity |
Returns
Section titled “Returns”number - the world, 0 = the shared one; nil when there is no such entity
Example
Section titled “Example”if GetEntityVirtualWorld(id) ~= GetPlayerVirtualWorld(pid) then return end -- not where the player isSee also
Section titled “See also”SetEntityVirtualWorld · GetPlayerVirtualWorld · the World entities group of the index
