Here we put a model of a weapon that can be selected.
Drop Rotation
The rotation of the object when dropping.
Drop Forward Multiplier
At what distance from the player the discarded object will appear.
Drop Force
Setting the force of the throw when dropping an object.
Drop Torque
Setting the torque when dropping an object.
Equip Settings
Name
Description
Select Time
The time of taking the item in hand.
Hide Time
The time when the object is removed from the hands.
Inventory Settings
Property
Description
Reusable
Shows whether we can reuse the item or whether it will be deleted after the first use.
UI Settings
Property
Description
Item Image
Here we put the sprite of our weapon, which will be displayed in the HUD.
Event Settings
This parameter is responsible for events that will occur during the use of the item.
Property
Description
Component
Component Name.
Function
The function of the component that needs to be called.
Parameters
List of function parameters.
The function will be called only if the component is located on the same object as the InventorySystem component.
Example:
We can create an apple, when using it, the "ApplyHealth" function will be called from the "ObjectHealth" component with the parameter specified by us and will restore a certain amount of health to the player.