Skip to main content

GameObject.IsPlayer()

Returns true if this object or any of the ancestors of this object is a ML player.

Returns:

typeDescription
booleantrue if this object or any of the ancestors of this object is a ML player.

Usage

---@type GameObject
local gameobject;


local val0 = gameobject.IsPlayer()