Animal Controller
📥 Integrations📑 Changelog✅Social
  • 🤝Welcome to Malbers Animations Assets
  • 🌐Discover all my Assets
  • 💫What's New
  • 🌀Upcoming assets
  • 📋Changelog
  • ↗️Upcoming Changelog
  • 🛣️Road Map
  • ✍️End User Licence Agreement
  • 🌟Features
  • Improve Performance Tricks
  • 😓Know Limitations so far
  • 📥Downloads
  • QuickStart
    • 📖Guide to use All Malbers Assets with (AC)
    • 🔼Upgrade to URP
    • 🔼Upgrade to HDRP
    • 💔Common Issues
    • 🔔Tips and Tricks
  • Guides and Tutorials
  • 📺YouTube Tutorials
    • 📺Video Tutorials (On Queue)
  • 📱Mobile Setup Guide
    • Mobile Joystick
  • 🧐How to: Animal Controller
    • 🔹Play a Mode while Moving
    • 🔹Create and configure a new mode
    • 🔊Adding Sound Effects
    • 🔹Rebone Mesh Tutorial (Skin Mesh is Missing)
    • 🔹Add Movement with Non RootMotion Animations
    • 🔹Fetch a ball
    • 🔹Set up Timeline
    • 🔹Make Animal flee when see the animal Player
    • 🔹Animal Controller for Humanoids
    • Create a Shootable Weapon From Scratch
    • ⚔️How to Fix weapons offset and values (Bow, Pistol)
    • ✨Add a Effect to the Effect Manager
    • 🕹️Connect Inputs to the Controller
    • Modify the controller with a Stat
    • Use the Modify Stat Component
    • 📡Use a MEvent and MEvent Listeners
    • 💎Change from Faceted to Smooth poly art Animals
    • ⁉️Listen when an Mode starts or ends
  • 🐎How to: Horse Animset Pro
    • 🐴Call the Mount
    • 🤠Change Meshes for the Rider
    • 🏇Make any animal mountable
  • 🕺Strafing
  • Main Components
    • 🐺MAnimal Controller
      • General
        • Pivots
      • Speeds
      • 🔷States
        • 🕴️Idle
        • 🏃‍♂️Locomotion
        • 🌠Fall
        • 🤾‍♀️Basic Jump
        • 🤾‍♂️Root Motion Jump
        • 🐟Swim
        • 🐊UnderWater
        • 🧗‍♂️Climb
        • 🧗‍♂️Ledge Grab
        • 🦅Fly
        • 🪂Glide
        • 🧗Wall Run
        • 🧗Wall Run Vertical
        • ⛷️Slide
        • ☠️Death
        • ☠️Death Ragdoll
        • 🆕Creating a new State
      • 🟩Modes
        • 🟩Mode Behavior
        • 🟩Mode Sequence
      • 🅾️Stances
      • Advanced
      • Animal Modifiers
      • Events
      • Debug
      • Animal Animator Behaviors
      • Methods and Properties
    • 🎮Malbers Input & MInput
      • Methods and Properties
    • 🤖AI
      • AI Animal Control
      • MWayPoint
      • Wander Area
      • AI Target
      • Animal Brain
        • AI States
        • Tasks
          • General - Chance
          • General - Empty
          • General - Invoke Event
          • General - Send Message
          • General - Play Audio
          • General - Quick Align
          • General - Reaction
          • General - Set Look At Aim
          • General - Set Stat
          • General - Wait
          • Animal - Set Speed
          • Animal - Play Mode
          • Animal - Set/Play State
          • Animal - Set Stance
          • Animal - Set Strafe
          • Movement - Move Stop
          • Movement - Patrol
          • Movement - Set Destination
          • Movement - Set Target
          • Variables - Set Var Listener
          • Weapons - Weapon Tasks
        • Decisions
          • General - AND
          • General - Check Stat
          • General - Compare Stats
          • General - Look
          • General - OR
          • General - Is Task Done?
          • General - Wait
          • Movement - Has Arrived
          • Movement - Check Target
          • Animal - Check Mode
          • Animal - Check Stance
          • Animal - Check State
          • Variables - Check Scriptable Variable
          • Variables - Check Transform Var
          • Variables - Check Var Listener
          • Runtime Set - Is Target in Runtime Set
      • 📌Point Click
    • 🧨Reactions
    • 📶Combo Manager
    • ⚔️Weapon Manager
      • 🛡️MWeapon [General] Properties
      • 🛡️MWeapon [Damage] Properties
      • 🛡️MWeapon [IK] Properties
      • ⚔️MMelee
      • 🔫MShooteable
      • 🏹Bow
    • 〰️Path Constraint
      • 〰️MPath
      • 〰️Path Link (Straight)
      • 〰️Path Link (Cinemachine Path)
      • 〰️Path Creator(Sebastian Lague)
    • Speed Ground Changer
  • Scriptable Architecture
    • 💠Scriptables
      • 🔹Bool Var
      • 🔹Int Var
      • 🔹Float Var
      • 🔹String Var
      • 🔹ValueToString
      • 🔢Variable Listeners & Comparers
      • 🔰IDs
      • 🎫Tags
      • 🪝Transform Hook
      • 📣MEvents
      • 📣MEvent Listener
      • 📦Runtime gameobjects
    • 🔤MLocal Variables
  • Secondary Components
    • ⚔️MDamager
      • 🐾MAttack Trigger
      • 🐾Attack Trigger Behavior
      • 🏉MProjectile
      • 🏹Projectile Thrower
      • 🤯MExplosion
    • 🤕MDamageable
    • 🧊Zones
      • Public Methods
    • ✊Pick Up - Drop
    • ✊Pickable
    • 🚩Respawner
    • 🚩Respawner NPC
    • 🚩Simple Respawner
    • 🏁CheckPoint
    • IK Manager
      • IK Processors
      • Weight Processors
  • Global Components
    • 🧡Stats
      • 🔸Stat Modifier
      • 🔸Modify Stat <Component>
      • 🔸Modify Stat <Asset>
      • 👨‍💻Public Methods
    • Animator Behaviours
      • Message Behaviour
      • Random Behaviour
      • Is Kinematic Behaviour
      • Sound Behaviour
      • Rigid Constraint Behaviour
    • 🟩Trigger Proxy
    • 🔌Interactable
    • ⚡Interactor
    • ⁉️Conditions
    • 🎥Free Look Camera
    • 🎥Cinemachine
    • UI
      • Unity Utils
  • Riding System (HAP)
    • Horse Animset Pro (HAP) Riding System
    • The Art of (HAP)
    • Mount
      • Methods and Properties
    • MRider
      • Methods and Properties
    • Mount Triggers
    • Mount Points
  • Utilities
    • Material Changer
    • Active Meshes
    • Effect Manager
    • Effect Behavior
    • Animator Event Sounds
    • Blend Shapes
      • Blend Shape Preset
    • Look At
    • 🏹Aim
    • 🎯Aim Target
    • 🎯Lock On Target
    • 🐾Steps Manager
    • 🐾Step Trigger
    • 🔗Mode Align
    • 🔗Aligner
    • Component Selector
    • MAnimalAnimatorSync
    • Multiple Time Checker
    • MAnimalAnimatorSync
  • Annex
    • 🗃️Integrations
      • General HAP Integration
      • Rewired
      • Invector Templates
        • Invector Weapon Settings
      • Animals Controller + Invector
      • Ootii's Motion Controller
      • Opsive Ultimate Character Controller (UCC 3.03)
      • Opsive Ultimate Character Controller (UCC 3.08) Generic
      • AStar Pathfinding
      • Unity Input System (NEW)
        • New Input Link [Old Versions]
      • Game Creator
      • Game Kit Controller
    • Contact
    • 🤔FAQ
    • Refund Policy
  • Games using Malbers Animations
  • Interfaces
    • IAITarget
    • IWayPoint
    • IAIControl
    • IAim
    • IAlign
    • IGravity
    • IInteractor
  • ULTIMATE SELECTOR
    • Overview
    • Selector Manager
    • Selector Editor
    • Selector Controller
    • Selector Item
    • Selector UI
    • Selector Data
    • Changelog (Selector)
  • 🎒Malbers Inventory Add-On
    • Overview
      • Compatibility Matrix
      • Roadmap
      • Update Notes
  • Updating from v1.1.1 to v1.2 Instructions
  • Basic Setup Instructions
    • Creating a new Item
      • Adding Buffs/Debuffs to Items
      • Setting up Item Reactions
      • Custom Rarities
    • Setting up Item/Inventory Types
    • Set up the Pick/Drop Component
    • Setting up the Notifications
    • Setting up the Item Info panel
  • Inventory Set
    • Events
  • Inventory Master
  • Notification Manager
    • Notification Child
    • Events
  • Save/Load System
  • Item Spawner
  • Storage Chests
    • Chest Inventory
    • Chest Inventory UI
  • Using Armour
  • Shop System
    • Shop
    • Shop UI Manager
  • Cooking System
    • Create a new Recipe
  • UI Manager
  • Hotbar
Powered by GitBook
On this page
  • Overview
  • Requirements
  • Mode and Abilities
  • Animations and Animator
  • Animation Curves
  • Projectile
  • Shootable Parameters
  • Rate
  • Automatic
  • Charge time
  • Charge time Curve
  • Max Charge
  • Charge Character Multiplier (CM)
  • Aim Origin
  • Aim Action
  • Aim Side
  • Aim Limit
  • Use Aim Angle
  • Unequip On Aim
  • Has Fire Anim
  • Equip Projectile
  • Release Projectile
  • Release by Animation
  • Release Delay
  • Projectile
  • Projectile Parent
  • Min and Max Force
  • Force Mode
  • Gravity
  • No Reload
  • Has Reload Anim
  • Reload Time
  • Auto Reload
  • Chamber Size
  • Ammo In Chamber
  • Total Ammo
  • General Parameters
  • Damage Parameters
  • IK Parameters
  • Extra Parameters

Was this helpful?

  1. Main Components
  2. Weapon Manager

MShooteable

1.4.5

PreviousMMeleeNextBow

Last updated 3 months ago

Was this helpful?

Overview

This component allows firing projectiles from a weapon.

Requirements

Here are the main steps you need to set up a Shooteable weapon properly

..........(Incomplete)

Mode and Abilities

Every shootable weapon needs at least Aim, Reload, and Fire animations. Those need to be set on the Mode Abilities and the Animator Controller.

  • Fire Ability: 101

  • Aim Ability: 97

  • Reload Ability: 96

Animations and Animator

The Animations for the Weapons are set on the Layer Upper Body. This allows them to move around, walk, run, crouch, jump, etc, and use the shootable weapon only on the upper body.

All the Animations have a duplicated version just in case the weapon needs to be used on the opposite hand:

Fire and Reload animations are optional. they can be skipped if [Has Fire Anim] and [Has Reload Anim] are set to false.

Animation Curves

All the animations involved with aiming must have the IKAim Curve. This will allow to activate the IK aiming system for the weapons

Projectile

The Shootable weapon needs a Projectile to release. You need to set a gameobject with the MProjectile component in the Projectile parameter


Shootable Parameters

Rate

The time delay between attacks. Once a weapon has attacked or released a projectile. it will wait until this time to release the next attack

Automatic

Continues to attack if the Main Input is still pressed down.

Charge time

Weapons can be charged before releasing the attack. E.g. The bow can bend to fire the arrow.

Charge Mechanic is only activated if the Projectile is set to Release on Attack Released

Charge time Curve

Evaluate the Charge value in the Curve

Max Charge

The max value of the charge that goes from 0 to this value. This value is sent to the Animator for the BlendTree of Charge animations

Charge Character Multiplier (CM)

Charge multiplier to Apply to the Character Charge Value (For the Animator Parameter)


Aim Origin

If the projectile is equipped before the attack is released. it will be parented to this Transform. E.g. The arrow is parented to the string before it is released.

Aim Action

Sets the way the weapon will handle the Aiming mechanic

  • Manual: The Weapon after is equipped it need to enable the Aiming State via Input

  • Automatic: As soon as the Weapon is equipped it will enter the Aiming State. Firing a projectile will also activate the aiming state

  • Ignore: Firing projectiles does not require aiming.

Aim Side

This dictates the position the Aim Profile Camera is going to be placed, In the left or Right side of the shoulder.

Aim Limit

The weapon will limit firing a projectile if the Angle formed between the Fire Direction and the Forward Direction of the Character. Usually, this is only applied when the character is not strafing or when is mounting the horse. E.g. The Bow cannot shoot arrows in a certain angle due to the harsh position .

The angle is dictated by the Aim Component Aim Horizontal parameter.

Use Aim Angle

Adds an extra angle in the Up Direction to fire the projectile. It creates a parabole trajectory.

Unequip On Aim

By Default if the weapon is aiming, it cannot be unequipped. Enable this parameter to interrupt the Aim and Unequip the weapon.


Has Fire Anim

When is set to true, the Character will call the Fire Abilty (x101) on the mode.

Equip Projectile

Set when the projectile is going to be equipped.

You can set multiple options but the projectile will be equipped on the first action. All other actions will be ignored.

Release Projectile

Sets when the projectile is going to be released.

  • Never: The projectile will be not released by me. (This is used when Invector weapons are the ones firing the projectiles)

  • On Attack Start: The projectile is released as soon as the Attack Input is pressed

  • On Attack Released: The projectile is released after Attack Input is released. ⭐This Option enables the Charge Weapon Mechanic

Release by Animation

The projectile is released by an animation Message. You will need to add a Weapon Behavior Directly to the animation.

Release Delay

If Release by animation is disabled. The projectile release will be delayed by this value

Projectile

Prefab of the actual projectile to shoot.

Projectile Parent

Transform that the projectile will be parented to.


Min and Max Force

Force to release the projectile. If the Charge mechanic is active the force will be influenced by the Charge normalized value.

Force Mode

Force type applied to the Projectile rigid body.

Gravity

Gravity transferred to the projectile. Set it to Vector3.zero if you want the projectile to travel with no gravity influence.


No Reload

Ignores completely the reload mechanic. The weapon will never run out of ammo

Has Reload Anim

The Weapon uses a reload animation to complete the reload mechanic. The Character will call the Reload Abilty (x096) on the mode.

Reload Time

Time elapsed since the reload action and animation were called, and the actual Reload logic where the ammo is updated.

Auto Reload

When true, the reload logic will be called when there's no ammo in the chamber

Chamber Size

Weapon chamber capacity. E.g. a Pistol can shoot 8 bullets without having to reload. Riffle can shoot 30 bullets without having to reload.

Ammo In Chamber

Current projectiles in the chamber. When this value is set to zero, you cannot fire any projectiles until you reload again

Total Ammo

The totalTotal amount of projectiles the weapon has available


General Parameters

Damage Parameters

IK Parameters

Extra Parameters


The Weapon mode will be set by the

General Parameters are shared between all Weapons. Check all parameters .

Damage Parameters are shared between all Weapons. Check all parameters .

IK Parameters are shared between all Weapons. Check all parameters .

⚔️
🔫
Weapon ID
here
here
here
Rifle Mode (ID: 301) and it 3 Abilities
Rifle Aim Right Hand and Rifle Aim Left Hand use the same condition transitions, but the Parameter Left Hand is different. (True or False)
The animation will set the Aim IK Weight to this value (1) while that animation is playing
From 90 to 180 the aim is disabled
Throwables have a Fire Projectile Message attached to the animation itself
The ammo updates 2 seconds after the reload animation is playing