User Tools

Site Tools


api:map_spawn_info

MAP_SPAWN_INFO

Category: Data

Properties


Prefab

Serialized

The prefab that will be spawned.

  • Type: PREFAB
  • Expected: asset ID

Position

Serialized

The position at which the prefab will be spawned.

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

Orientation

Serialized

The orientation at which the prefab will be spawned.


Scale

Serialized

The scale at which the prefab will be spawned.

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

Color

Serialized

The color tint at which the prefab will be spawned.

  • Type: color
  • Expected: color value
  • Default value: COL_WHITE

PatchBeforeVersion

Serialized

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
  • Expected: string value
api/map_spawn_info.txt · Last modified: 2022/11/17 19:03 (external edit)