Spawn Prefab Action: Difference between revisions

From Pummel Party Mod Documentation
Jump to navigation Jump to search
(Initial content)
 
No edit summary
Line 4: Line 4:
The prefab will be spawned at the position of all targets provided if using the ''Advanced'' Target option. A prefab will also be spawned at the position of the gameobject if ''This Object'' is enabled as a Target.
The prefab will be spawned at the position of all targets provided if using the ''Advanced'' Target option. A prefab will also be spawned at the position of the gameobject if ''This Object'' is enabled as a Target.


The prefab(s) can also be spawned using a position or rotation offset from the target. This offset is applied to all prefabs spawned using the action. If you want different offsets per target, use multiple [[Spawn Prefab Action]]s actions.
The prefab(s) can also be spawned using a position or rotation offset from the target. This offset is applied to all prefabs spawned using the action. If you want different offsets per target, use multiple [[Spawn Prefab Action]]s.


[[Category:Actions]]
[[Category:Actions]]

Revision as of 03:40, 10 November 2022

An action to spawn a prefab at a gameobject's position and rotation.

Although multiple prefabs can be provided, only the first in the list will be spawned (May change in the future). The prefab will be spawned at the position of all targets provided if using the Advanced Target option. A prefab will also be spawned at the position of the gameobject if This Object is enabled as a Target.

The prefab(s) can also be spawned using a position or rotation offset from the target. This offset is applied to all prefabs spawned using the action. If you want different offsets per target, use multiple Spawn Prefab Actions.