Give Minigame Item Action: Difference between revisions

From Pummel Party Mod Documentation
Jump to navigation Jump to search
(Added image and updated content)
mNo edit summary
 
Line 4: Line 4:
This action takes a reference to a [[Prefab Asset]]. The prefab '''must have an [[Item Component]] on the root gameobject.''' This means when editing the prefab, the single, top-most gameobject in the hierarchy must contain an Item component. If it doesn't have this, then you will be unable to set the prefab as the item in this action.
This action takes a reference to a [[Prefab Asset]]. The prefab '''must have an [[Item Component]] on the root gameobject.''' This means when editing the prefab, the single, top-most gameobject in the hierarchy must contain an Item component. If it doesn't have this, then you will be unable to set the prefab as the item in this action.


The target must be set to a player, otherwise the action does nothing. If you want to spawn an item on the ground, use a [[Spawn Prefab Action]] instead.
The target must be set to a player, otherwise, the action does nothing. If you want to spawn an item on the ground, use a [[Spawn Prefab Action]] instead.


This action is only available in [[Minigame Mod]]s.
This action is only available in [[Minigame Mod]]s.


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

Latest revision as of 02:44, 16 December 2022

The Give Minigame Item action in the Action Editor.

An action to give a player an item in a minigame (To give a board player an item, use the Give Item Action).

This action takes a reference to a Prefab Asset. The prefab must have an Item Component on the root gameobject. This means when editing the prefab, the single, top-most gameobject in the hierarchy must contain an Item component. If it doesn't have this, then you will be unable to set the prefab as the item in this action.

The target must be set to a player, otherwise, the action does nothing. If you want to spawn an item on the ground, use a Spawn Prefab Action instead.

This action is only available in Minigame Mods.