Difference between revisions of "SpawnUnit WorldScript"
From Serious Sam's Bogus Detour
(Created page with "Spawns units, like enemies, units or props. To spawn several units on the same point, loop the script with a ScriptLink WorldScript.") |
m (Text replacement - " This script can be enabled or disabled." to "") |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | {{WorldscriptIcon|rgb(218, 205, 102)|256|0}} | |
+ | |||
+ | Spawns a unit at the position of this script. <code>LastSpawned</code> is set to a single unit of the last unit that this script spawned, while <code>AllSpawned</code> contains all units that this script spawned that were not destroyed yet. This script can be executed by other scripts. | ||
+ | |||
+ | == Properties == | ||
+ | |||
+ | * Resource <code>UnitType</code>, unit producer | ||
+ | * String <code>SceneName</code> | ||
+ | * Integer <code>Layer</code> | ||
+ | |||
+ | == Unit sources == | ||
+ | |||
+ | * <code>LastSpawned</code> | ||
+ | * <code>AllSpawned</code> | ||
+ | |||
+ | [[Category:WorldScripts]] |
Latest revision as of 14:58, 26 July 2017
Spawns a unit at the position of this script. LastSpawned
is set to a single unit of the last unit that this script spawned, while AllSpawned
contains all units that this script spawned that were not destroyed yet. This script can be executed by other scripts.
Properties
- Resource
UnitType
, unit producer - String
SceneName
- Integer
Layer
Unit sources
-
LastSpawned
-
AllSpawned