WeaponController
INVENTORY
inventorySize: Maximum amount of weapons you can have
initialWeapons: An array that includes all your initial weapons.
REFERENCES
mainCamera: Attach your main camera
cameraPivot: Attach your camera pivot object
weaponHolder: Attach your weapon holder
VARIABLES
resizeCrosshair: Do you want to resize your crosshair on shooting ?
autoReload: If true you won´t have to press the reload button when you run out of bullets
alternateAiming: If false, hold to aim, and release to stop aiming.
hitLayer: What objects should be hit
removeCrosshairOnAiming: Do not draw the crosshair when aiming a weapon
canMelee: Enables and Disables the Melee Attack ( Press F to Attack )
holsterMotionObject: Animator the plays an animation to hide the Weapon
meleeDuration: How much time the melee lasts
meleeDelay: Delay time to hit the target
meleeAttackDamage: Damage to deal.
meleeRange: How far you are able to land a hit
meleeCamShakeAmount: Camera Shake on Melee
reEnableMeleeAfterAction: Enable Time to elapse after executing a Melee Attack
EFFECTS
effects
EVENTS
events
WeaponControllerEditor.cs can be found as an external script.
Last updated