User Tools

Site Tools


api:map_spawn_info

MAP_SPAWN_INFO

Category: Data

Properties


Prefab

The prefab that will be spawned.

  • Type: PREFAB
  • Expected: Asset ID

Position

The position at which the prefab will be spawned.

  • Type: vec3f
  • Default value: { 0, 0, 0 }

Orientation

The orientation at which the prefab will be spawned.


Scale

The scale at which the prefab will be spawned.

  • Type: vec3f
  • Default value: { 1, 1, 1 }

Color

The color tint at which the prefab will be spawned.

  • Type: color
  • Default value: COL_WHITE

PatchBeforeVersion

This prefab will be force-spawned in existing maps if the Map Version is smaller than 'Patch Before Version'. The Map Version is equal to the Mod Version when the map was last loaded. Format: \'X.Y.Z\'

  • Type: string
api/map_spawn_info.txt · Last modified: 2020/10/22 10:16 (external edit)