Api > GameObject > IsPlayer()
GameObject.IsPlayer()⚓︎
Returns true if this object or any of the ancestors of this object is a ML player.
Returns:⚓︎
type | Description |
---|---|
boolean | true if this object or any of the ancestors of this object is a ML player. |
Usage⚓︎
---@type GameObject
local gameobject;
local val0 = gameobject.IsPlayer()