YaScene¶
Beta
YaScene
Functions¶
YaEntity GetDefaultSpawnPoint()Beta
Gets default spawn point.
YaEntity[] GetAllRespawnPoints()Beta
Returns all respawn points.
Gets closest respawn point by player id.
Spawns object with specified name and position.
name
Prefab nameglobalPosition
The position to place the spawned object
Spawns object with specified name, position, and rotation.
name
Prefab nameglobalPosition
The position to place the spawned objectglobalRotation
The Euler rotation in degree
Spawns object with specified name, position, rotation, and scale.
name
Prefab nameglobalPosition
The position to place the spawned objectglobalRotation
The Euler rotation in degreeglobalScale
The absolute scale despite of the original object scale
Destroy object by entity.
Check if the entity object exists.