🛡️MWeapon [General] Properties
All Weapons Share the General Tab
Last updated
All Weapons Share the General Tab
Last updated
All weapons inherit from the MWeapon class and share the following General properties.
Enable/disable the Weapon logic. Disable weapons will not cause any damage
It shows in the console all the logic a weapon is doing while it is being used.
Unique Index to differentiate a same weapon type from another ... (e.g. a sword made of wood and another made of steel. Both have almost the same values. only changing the damage it does).
Layers that interact with the weapon. What objects the weapon can hit.
Will the weapon hit triggers or not
When true, the weapon will apply forces to rigidbodies using the velocity of the weapon.
When false, it will use the Forward direction of the Owner, to apply forces to the hit rigidbodies.
It allows to ignore internal colliders inside the Owner of the weapon. Useful if the weapon hits an arm or a Leg inside the character.
Gets the Weapon Type ID. This value is used in the Animator to Play the correct animation for the weapon. It also is the Mode Animations the weapon will have inside the Animal Controller inside the Character.
Use a Arm Pose when the weapon is equipped while Grounded. It will keep playing an animation for an arm while the weapon is equipped
This weapon arm animations are located in the Arms Layers in the Animator Controller:
Use an Arm Pose when the weapon is equipped while Grounded. It will keep playing an animation for an arm while the weapon is equipped.
The identifier value of the Holster any weapon can be stored. The Holsters are set on the Weapon Manager
This value is also used to play the store/sheathe and draw/unsheathe weapon animations.
It overrides the Animation value of the holster. But the weapon will still be stored on the original holster. E.g The Spear uses the Left Holster(For melee weapons) but it will play the Back Holster animations
Index of the Array of Holster gameobjects a weapon can be stored. E.g. The Sword and the Spear both share the same Holster ID [Left Holster] for Melee Weapons. This means they cannot be stored at the same time. The sword will make the spear drop to the ground and vice versa when equipped.
The sword's Holster Index is 0 and the weapon will be stored in the Hip, the spear uses Holster Index = 1 and it will be stored in the back.
No Draw Animations will be played only for this weapon
No Store Animations will be played only for this weapon
When the weapon is equipped. it will also activate a stance. Useful for weapons that changes completely the way the character moves
When the weapon is aiming, strafe will be activated on the animal controller. Useful for Shooteable weapons
When the weapon is equipped, strafe will be activated on the animal controller. Useful for Shooteable weapons
Which Aim Camera activates when Aiming.. Left, Right or None
Set the hand to be Right Handed or Left Handed. This will activate the Right Hand Parameter on the Animator Controller to mirror the Animation and set the weapon on a different hand
Offset to apply to the weapon when it set as a child of the hand
Offset to apply to the weapon when is set as a child of the Holster.