Unit Spawner Object
From Runic Games Wiki
Contents |
Unit Spawner
Description
This Level Object will spawn a Unit in the world.
Location
Right-click on an empty space in the Layout Scene Manager and choose Logic > Unit Spawner from the list.
Properties
Name | Type | Description | Read Only |
---|---|---|---|
ANGLE | |||
ANGLE | |
The angle at which to spawn Units. | |
ANGLE OFFSET | |
The "Angle" minus the specified offset. | |
BOX SIZE | |||
SIZE | |
The size of the box ( X = width, Y = height, Z = length ) if the "Shape" property is set to "Box". | |
ORIENTATION | |||
FORWARD | |
Forward by X,Y,Z. | |
RIGHT | |
Right by X,Y,Z. | |
UP | |
Up by X,Y,Z. | |
YAW | |
Yaw Rotation. | |
POSITION | |||
POSITION | |
Position by X,Y,Z world coordinates. | |
PROPERTIES | |||
DEATH PAUSE | |
The pause that will occur after a Monster dies and before the next Monster can spawn. Only used if "Max Count" value is smaller than "Count" value. | |
DESTROY BODY | |
If True spawned Monster meshes will be destroyed on death. | |
DIRECTION | |
The direction the Unit will face once spawned.
|
|
DURATION | |
The duration to release the Units in. | |
ENABLED | |
Set the Unit Spawner enabled or not. | |
FADE BODY | |
If True spawned Monsters will fade out when they die. | |
GIVE LOOT | |
If True Monsters will drop loot on death. | |
GIVE XP | |
If True Monsters will give XP on death. | |
HP MOD | |
Modifies the max health points of the spawned Monsters. | |
IGNORE UNIT OCCUPATION | |
Ignore passability occupation from other Units. | |
ITEMS FLIPOUT | |
If True Items will play a flip out animation when spawned. | |
MAX ALLOWED | |
The maxiumum number of Monsters allowed to be alive at a time. | |
MONSTER WANDER | |
Distance the Monster will wander from the Position of the Unit Spawner. | |
MUST SPAWN | |
If True the Unit Spawner must spawn the unit even if the area is unpathable. | |
PLAY SPAWN ANIM | |
Monsters only: If true the Monster will play its spawn animation if it has one. | |
PULSE RATE | |
The number of pulses that occur. This will spawn the number of Units per pulse. | |
QUEUED ENV ANIM | |
An environmental animation the Monster Object will play after the "Spawn Animation" has finished. | |
RELEASE ORDER | |
The order in which the Units are spawned.
|
|
REQUIRES LOS | |
If True the Unit requires line-of-sight from the Unit Spawner to be spawned. | |
RESPAWN TIME | |
The time between character death and respawn (0 for no respawn). | |
RESPAWN TIME MIN | |
Minimum time between character death and respawn (will always use "Respawn Time" if 0). | |
SHAPE | |
The shape of the Unit Spawner which defines the area Units are spawned in.
|
|
SNAP TO GROUND | |
Items and Monsters snap to the ground when spawned. | |
SPAWN ANIM | |
The spawn animation to play when the Monster is spawned. | |
SPAWN AT UNIT | |
The name of a specific Unit to spawn at. | |
SPAWN IN CENTER | |
Items and Monsters only: If True the Units will spawn in the center of the Unit Spawner regardless of "Shape". | |
SPAWN ON ANY CLIENT | |
If True the Units will spawn on any multiplayer client. | |
SPAWN ON CREATE | |
If True the Unit Spawner will spawn Units on level load. | |
SPAWN ONCE | |
If True the Unit Spawner will only spawn once. | |
SPAWNING | |
Special idle spawn animations. | |
TARGET PLAYER | |
Monsters only: If True the Monsters will target the Player when spawned. | |
UNIQUE IN WORLD | |
If True the Unit will not spawn if there is another one in the world. Only works for Monsters and Items. | |
UNIT LEVEL DELTA | |
Modify the level of spawned Units by this amount. | |
UPDATE IN EDITOR | |
If True the object will visually update in the editor. | |
WANDER ON SPAWN | |
If True the Unit will wander once spawned. | |
RADIUS | |||
MAX RADIUS | |
The maximum radius for the Unit Spawner. | |
MIN RADIUS | |
The minimum radius for the Unit Spawner. | |
USE MAX ONLY | |
If True only the "Max radius" will be used. | |
RESOURCES | |||
FORCE SPAWNCLASS | |
If True, and "Group" is "Spawn Class", all the objects chosen from the Spawn Class will be spawned. | |
GROUP | |
Filters the list displayed in "Resource" by group.
|
|
RESOURCE | |
This determines what Unit is spawned. | |
SHAPE VISIBLE | |||
SHAPE VISIBLE | |
If True the "Shape" of the Unit Spawner is visible (editor only). | |
SPAWNCOUNT | |||
COUNT | |
The maximum number of Units to spawn. | |
MIN COUNT | |
The minimum number of Units to spawn. If set to -1 only the "Count" is used. | |
Input Events
- Enable
- Enable the Unit Spawner.
- Disable
- Disable the Unit Spawner. The Unit Spawner will not spawn any more Units and won't accept "Spawn Units" Input events.
- Spawn Units
- Spawn the specified Units.
- This event will reset the Unit Spawner if it is currently Enabled.
- Stop
- Stop spawning the specified Units.
- The Enabled state of the Unit Spawner will not change. If Enabled it will accept "Spawn Units" Input events.
- Destroy and then Spawn Units
- Destroy/Kill all spawned Units and spawn new Units.
- This will fire the "Unit Spawned" Output event.
- Hide And Disable Spawned Units
- Increment Level Delta
- Increment the level of the spawned Units by 1.
- This will not change the level of already spawned Units.
- Decrement Level Delta
- Decrement the level of the spawned Units by 1.
- This will not change the level of already spawned Units.
- All Units Spawned?
- Checks if all Units set on the Unit Spawner have been spawned. If so, fire the "All Units Spawned" Output event.
- All Monsters Dead?
- Checks if all Monster Objects spawned by the Unit Spawner have been killed.
- If True it will fire the "All Monsters Dead" Output event.
- If False it will fire the "All Monsters NOT Dead" Output event.
Output Events
- All Units Spawned
- This event will fire when all Units set on the Unit Spawner have been spawned. It will also fire after the "All Monsters Dead?" Input event is fired and returns True.
- Monster Killed
- This event will fire when any Monster spawned by the Unit Spawner is killed.
- All Monsters Dead
- This event will fire when all Monsters spawned by Unit Spawner have been killed.
- Item Picked Up
- This event will fire when an Item spawned by the Unit Spawner is picked up by the Player.
- All Items Picked Up
- This event will fire when all Items set on the Unit Spawner have been spawned and picked up by the Player.
- Item Interacted
- All Items Interacted With
- All Monsters NOT Dead
- This event will fire after the "All Monsters Dead?" Input event is fired and returns False.
- Unit Spawned
- This event will fire when a Unit is spawned by the Unit Spawner.
- This will also pass the spawned Unit to another object.