The item and perspective components will handle displaying and positioning the item, but the item won’t be able to do anything with just those components. The Item Action component will allow the item to perform an action, such as firing a bullet, melee slashing, or being thrown. Any number of item actions can be added to the item – the Item Action ID allows the item ability to determine which action to perform the interaction on. New actions can be added through the Item Manager.

Multiple Item Actions Setup

  1. Add all of the actions that you’d like your item to be able to perform through the Existing Items tab of the Item Manager. In this example we are using the assault rifle and adding the melee weapon action so the assault rifle can both shoot and be used as a melee object.
  2. Make a note of the Action ID of the new action that was just added to the item. This ID will be increased sequentially from the previous ID. The assault rifle previously only contained a single action (the Shootable Weapon) so the ID of the Melee Weapon will be 1.
  3. Add any Item Abilities that should use the newly added action. For the Melee Weapon the Use ability should be added. An Action ID of 1 should be specified so the Use ability will know which action should be used.