sm.exists
Returns whether an object exists in the game. This is useful for checking whether a reference to an object is valid.
Kind: Function
Environments: Game, Terrain
Game
sm.exists( object )
Parameters:
| Name | Type | Description |
|---|---|---|
object |
any | The object instance. |
Returns:
| Type | Description |
|---|---|
| boolean | Whether the object exists. |
Terrain
sm.exists( object )
Open the full Terrain reference
Parameters:
| Name | Type | Description |
|---|---|---|
object |
any | The object instance. |
Returns:
| Type | Description |
|---|---|
| boolean | Whether the object exists. |