YaScene¶
Beta
YaSceneFunctions¶
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.
namePrefab nameglobalPositionThe position to place the spawned object
Spawns object with specified name, position, and rotation.
namePrefab nameglobalPositionThe position to place the spawned objectglobalRotationThe Euler rotation in degree
Spawns object with specified name, position, rotation, and scale.
namePrefab nameglobalPositionThe position to place the spawned objectglobalRotationThe Euler rotation in degreeglobalScaleThe absolute scale despite of the original object scale
Destroy object by entity.
Check if the entity object exists.