Give Minigame Item Action: Difference between revisions
Jump to navigation
Jump to search
(Initial content) |
(Added image and updated content) |
||
Line 1: | Line 1: | ||
[[File:GiveMinigameItemAction.png|thumb|right|600px|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]]). | 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. | 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 is only available in | 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. | |||
[[Category:Actions]] | [[Category:Actions]] |
Revision as of 02:54, 7 December 2022
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.