Item Manager: Difference between revisions

From Graal Bible
(Created page with "This section will go over how to add an item (gun, melee, items...) to your character.")
 
No edit summary
Line 1: Line 1:
This section will go over how to add an item (gun, melee, items...) to your character.
This section will go over how to create and add an item (gun, melee, items...) to your character.
 
==== Step1 ====
In the weapon: '''''3D/Player/Item/Manager'''''
 
in the '''''function onCreated()''''' and to the variable '''''this.allItems'''''  add your item using this format:
{| class="wikitable"
!{name Of Item, associated Weapon, icon Prefab for UI}
|}
[[File:ItemManager.png|frameless|917x917px]]
 
==== Step2 ====
Create the associated Weapon for the item you want to create.
 
Check '''''3D/Player/Item/Weapons/Ranged/Gun/M16''''' for example.

Revision as of 05:54, 30 June 2021

This section will go over how to create and add an item (gun, melee, items...) to your character.

Step1

In the weapon: 3D/Player/Item/Manager

in the function onCreated() and to the variable this.allItems add your item using this format:

{name Of Item, associated Weapon, icon Prefab for UI}

ItemManager.png

Step2

Create the associated Weapon for the item you want to create.

Check 3D/Player/Item/Weapons/Ranged/Gun/M16 for example.