Weapon Item
Jump to navigation
Jump to search
A Weapon Item is a type of Item that represents a Weapon that can be used by the Player or NPCs.
Weapons are spawned and placed on the character's right or left hand, depending on the weapon type, and some of them can be use in conjunction with shield.
- Weapon Type: the type of the weapon, it can be:
The Weapon Type decides how the weapon will be used.
- Weapon On Hand: the GameObject that represents the weapon on the character's hands while he is using it.
- Weapon Sheathed: the GameObject that represents the weapon equipped on the character while he is not using it.
- Weight Type: the weight type of the weapon.
- Aggro Modifier: the aggro effect this weapon has upon hitting an enemy target.
- Blocking Multiplier: how much this weapon absorbs damage when an attack si blocked. (1: No absorb - 0: Full absorb).
- Blocking Sound: the sound to play when an attack is blocked.
- Damage: the base damage of the weapon, also displayed in the game.
- FPS Animator: the Animator the FPS Hands of the Player will use when this weapon is equipped.
- TPS Animator: the Animator the NPCs will use when this weapon is equipped.
- Reach: the reach of the weapon, used by NPCs to determine the distance from which the attack can land
- Attack Types: how many base attacks (clicks) the weapon has.
- Attack Chain Time: the max time that can pass to chain attacks.
- Charged Attack Types: how many charged attacks (holds) the weapon has.
- Charged Attack Time: the max time that can pass to chain attack.
Configuring Attacks:
When you decided how many attacks types the weapon has, you will have to configure each individual attack.
The Animation that will play is present in the FPS/TPS Animator you've selected and it has the Index the "Attack Type Index":
- Attack Type Index: the swing number (starts from 0).
- Base Damage: the damage of the current swing.
- Stamina Amount: the amount of stamina to drain while swinging.
- How Many Hits Can Sustain: how many enemy targets can be hit by the swing if the weapon collides with them before cancelling the effect of the attack.
- Attack Sound: the sound that will be played while swinging.
Weapon Tutorials:
To know how to make a new Melee Weapon Item, view Creating a New Melee Weapon tutorial.
To know how to make a new Ranged Weapon Item, view Creating a New Ranged Weapon tutorial.