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
  • General
  • Trigger
  • Active
  • Index
  • Hit Layer
  • Trigger Interaction
  • Don't hit Owner
  • Owner
  • Damager Profiles
  • Damage
  • Stat
  • Min/Max
  • Pure Damage
  • Element
  • Chance
  • Multiplier
  • Extras
  • Min/Max Force
  • Force Mode
  • React
  • Custom Reaction
  • Interact
  • InteractorID
  • Hit Effect
  • Animator Stop Time
  • Animator Speed
  • Animator
  • Events
  • On Hit (Transform)
  • On Hit Position (Vector3)
  • On Hit Interactable (int)
  • On Profile Changed (Int)
  • On Attack Begin
  • On Attack End

Was this helpful?

  1. Secondary Components
  2. MDamager

MAttack Trigger

PreviousMDamagerNextAttack Trigger Behavior

Last updated 10 months ago

Was this helpful?

Overview

This component is the default damager used with colliders to do damage to the characters.

It requires a collider set as a trigger. By default, it will create a box collider when this component is added to a gameobject.

This component works heavily with the Attack Trigger Behaviour. Which Activate the Attack trigger via Animator Behaviours:

General

Trigger

Reference for the Collider needed by this component. This is a required field*

Active

Enable/Disable the Damager.

Index

Index of the Damager. Often used by the Animator to know which Attack Trigger to enable/disable via an Animation.

Usually, the Animals have more than one Attack Trigger: Horns, Mouth, Claws, Feet, Swords... Each Attack can use this index to activate the proper Damager while making the animation.

Hit Layer

Layers to interact with objects. By Default is set that affects only the Animal Layer.

Trigger Interaction

Set the Interaction that the Damager will have with Triggers.

Don't hit Owner

When the Damager is using Raycast or OnTriggerEnter, sometimes it can register colliders inside the same hierarchy the Damager is. When this option is enabled, these colliders will be ignored.

Owner

By default, the Owner is the Root of the hierarchy. But it can be set Manually to another gameobject. If this value is set to null, it will be set again to the Root of the hierarchy.

Damager Profiles

Profiles can change the way an Attack Trigger interacts with any Object. Use this to override values of an Attack Trigger depending the Animation is playing. It can be used to create cool finishing Moves of a Combo attack. The final blow can push the Animal Hitted and it can cause twice the damage:

The values inside the Profiles are the same parameters you can override in the Attack Trigger component.

Use the Index of the Profile to activate it. When the Animation Ends the Profile will be restored and the Default values will be applied on the next Attack Trigger Activation

Damage

Stat

Which StatID do you want to modify and what do you want to do to it? There are various values in the drop-down.

Min/Max

The minimum and maximum values to modify the stat. If set as the same then it will obviously be a static value.

Pure Damage

Element

Type of Element that this Weapon/Attack Trigger can inflict e.g. Fire, Ice, etc.

Chance

The critical damage will apply a chance to increase or decrease the final value of the Stat modifier. Probability of making critical damage.

Multiplier

The Stat Modifier value will be multiplied by this value if the critical chance is true.

Extras

Min/Max Force

When a Damager registers a collider, it will apply a force to the attached rigidbody. You can set the Min and Max Force here.

Force Mode

Type of force to apply on the ApplyForce() method.

React

The Damager receiver will apply its default Reaction .

Custom Reaction

You can set your own custom reaction here. This will override the Damager Receiver default reaction.

Interact

InteractorID

Index to send to the Interactable.

Hit Effect

This Gameobject will be enabled on impact. If it's a Prefab, it will be instantiated.

Animator Stop Time

Time the Animator will be stopped. If it's zero, stopping the animator is ignored.

Animator Speed

Value of the Animator Speed when it's stopped

Animator

If there's an Animator Controller, it will be stopped

Events

On Hit (Transform)

Invoked when the AttackTrigger hit something. Returns the Damager Receiver Transform as Parameter

On Hit Position (Vector3)

Invoked when the AttackTrigger hit something. Returns the position of the hit on the Damager receiver

On Hit Interactable (int)

Invoked when the Damage Receiver is an Interactable. Returns the Interactable ID as Parameter

On Profile Changed (Int)

Invoked when the damage profile changes

On Attack Begin

Invoked when the Attack Trigger is enabled

On Attack End

Invoked when the Attack Trigger is enabled

When a Damager registers a collider, it will find any Component on its hierarchy and it will apply all the modifications necessary to that gameobject

If this parameter is set to true the Damager Receiver () will ignore its default multiplier. Resulting in pure damage.

If the Damage Receiver has any component attached it will send an interaction using the InteractorID value.

⚔️
🐾
MDamageable
MDamageable
Interactable
Different Attack Triggers represented by a Red Gizmo
Add the Attack Trigger Behaviour to your Animations with the Attack Trigger ID and Profile to Activate the Attack Trigger component