Skip to content

YaScene

Beta
YaScene

Functions

YaEntity GetDefaultSpawnPoint()Beta
Gets default spawn point.
YaEntity[] GetAllRespawnPoints()Beta
Returns all respawn points.
YaEntity GetClosestRespawnPoint(number playerId)Beta
Gets closest respawn point by player id.
YaEntity Spawn(string name, float3 globalPosition)Beta
Spawns object with specified name and position.
  • name Prefab name
  • globalPosition The position to place the spawned object
YaEntity Spawn(string name, float3 globalPosition, float3 globalRotation)Beta
Spawns object with specified name, position, and rotation.
  • name Prefab name
  • globalPosition The position to place the spawned object
  • globalRotation The Euler rotation in degree
YaEntity Spawn(string name, float3 globalPosition, float3 globalRotation, float3 globalScale)Beta
Spawns object with specified name, position, rotation, and scale.
  • name Prefab name
  • globalPosition The position to place the spawned object
  • globalRotation The Euler rotation in degree
  • globalScale The absolute scale despite of the original object scale
void Destroy(YaEntity destroyTargetEntity)Beta
Destroy object by entity.
boolean CheckObjectExist(YaEntity entity)Beta
Check if the entity object exists.