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
  • Asset Location
  • Install the Integration Package
  • General Integration Steps
  • Mounted and Combat Layer
  • Rider Component
  • UI
  • Link Script
  • Camera Settings
  • Melee Template
  • Weapon Manager Component
  • Inputs
  • Events
  • No Equip Points
  • Use External
  • Shooter Template

Was this helpful?

  1. Annex
  2. Integrations

Invector Templates

Last Update: HAP 4.2.6d Invector 2.6b

PreviousRewiredNextInvector Weapon Settings

Last updated 2 years ago

Was this helpful?

Asset Location

| |

Remember to have both packages on your project installed correctly. Use always the latest verions

Install the Integration Package

2.- Install/Drop the unitypackage to your project.

You can test the Integrations Demo Scenes on each Template Folder:

Malbers Animations/Horse AnimSet Pro/Integrations/Invector

IMPORTANT: As part of the integration package all Invectors weapons prefabs that can be used with HAP, are modified and they have a MWeapon component; so they can be recognized by the Riding Combat System.

General Integration Steps

If you want to check how the final integration with the Basic Template: open the Demo Scene: v3rdPersonController - HAP on the HAP Integration Folder.

To create a new integration from scratch you need to do the following steps...

These steps are also included in the Melee Template and the Shooter Template, but with small changes.

Use emoji variation if you are using a different Template:

1.- Open the Demo Scene on the Invector Demo folders:

2.- Drag to the scene the Horse Realistic Prefab.

3.- Select the Character Controller Prefab:

4.- Change the Animator Controller:

Make sure your Character Controller has the Animator set to Animate physics

Mounted and Combat Layer

If by any chance you have modified your Animator Controller, or you are using other Animator Controllers Provided by Invector. you can always add the Mount Layer and Rider Combat Layers provided for the Riding system.

Rider Component

5.- Add the MRider script to your Character controller.

7.- On Disable Components add the scripts that interfere with the logic while riding. (Usually is used for scripts that are not supposed to be active while the character is Riding. Like scripts that move and rotate the character, Ragdoll scripts, etc. Also are used to disable Inputs that are only supposed to be active when the character is not riding: Ex: a Crouch Input).

In the case of Invector, it should be the VFootStep, VRagdoll, VGenericAction, VLadder, or any other you feel is necessary. Components that may interfere with the Riding system

UI

8.- Add the Mount UI prefab to your current UI Canvas.

The Mount UI notifies you when you can press the Mount and Dismount Inputs

10.- If you like you can also add to the UI canvas the Slider Stamina prefab and the Slider Health prefab to check the health and stamina of the horse.

Link Script

The Link script is the bridge between the Rider Component and Invector's templates. Allows the Rider to communicate with Invector's core Character Controller components. Disable features via code while the character is riding the animals and enabling them back when the character is back on foot

11.- Add the Invector HAP Link script to the Character.

Camera Settings

12.- Select the ThirdPersonCamera gameObject and change the Camera State List from:

This new state list contains the Camera State Ride used when the character is riding the horse.

14.- Create a new Event Listener and select the Event Set Camera Settings

15.- Enable the Transform (T) Listener and disable the Void Listener. Create a new Unity Event Listener and drag the same game object to the Runtime Only Slot.

16.- Add the *dynamic method vThirdPersonCamera.Target() to the Listener.

And that should be it… the basic controller should be able to ride the Horse.

Melee Template

if you want to check how the final integration should look like you can open the Demo Scene: vMeleeCombat HAP4.

The Extra Steps you should follow to complete the Melee Integration are the following:

Weapon Manager Component

Add the Weapon Manager Script.

Since we are using the Animators provided for the Integration package, is not necessary to Add the [Combat Layers].

But, if you want to learn how to add the Combat Layers check this video:

Inputs

If you are using a Custom Input System you will need to connect:

  • MWeaponManager.Set_Aim(bool) to your Aim Input.

  • MWeaponManager.MainAttack(bool) to your MainAttack Input.

  • MWeaponManager.SecondAttack(bool) to your SecondaryAttack Input.

  • MWeaponManager.ReloadWeapon() to your Reload Input.

This automatically adds to the MInput Script, the Inputs needed for the Rider Combat and connects the inputs to the Weapon Manager methods.

Events

Create the Combat Event Listeners by using the Context menu "Create Event Listeners".

This is used for Mobile Input on all HAP Demo Scenes. Skip this part if you are not using Mobile

No Equip Points

In the General group -> Weapons Equip Points; Remove the [Left Hand] and [Right Hand] References and set to true the [Ignore Hand Offset] Parameter.

Invector System will be handling all the offsets and weapon parenting to the proper position.

Use External

Select the Holsters/Use External and set [Use External]

[Instantiate On Equip] = false and [Destroy On Unequip] = false

Invector System will be handling all the weapon instances.

Shooter Template

If you want to check how the final integration should look like you can open the Demo Scene: vShooterMelee Inventory HAP.

Make sure the Invector's Bow and Handgun have the Malbers Weapon component attached to it.

Now the Controller should be able to use the pistol and the Bow weapons while riding the horse.

Next:

On the next page, check how the weapons are properly configured to be used with HAP

1.- Download from thethe package of the Template you own (Basic, Melee, or Shooter).

for Basic Template

for Melee Template

for Shooter Template

v3rdPersonConroller_Demo

vMeleeCombat_DemoScene

vShooterMelee_DemoScene

vBasicController

vMeleeController_Inventory

vShooterMeleeController

from Invector@BasicLocomotion to Invector@BasicLocomotion_HAP

from Invector@MeleeCombat_Upperbody to Invector@MeleeCombat_HAP

from Invector@ShooterMelee to Invector@ShooterMelee_HAP

This Animator already has the Mount Layer and the Rider Animator Parameters added. If you want to know how to add the Mount Layer to any Animator you can find out

6.- If you are using a "Custom Input System" you'll need to connect to your Mount Input, and to your Dismount Input. If you want to continue using my Malbers Input then use the Context Menu Create Mount Inputs.

This will create a component with 3 Inputs for the Rider (Mount, Dismount and Call Mount); and connect the events of the inputs to the proper methods.

You can change the Type from Key to Input and add those Inputs to the

With "Basic" Template add Invector HAP Link script

With "Melee" Template add Invector HAP Melee Link script

With "Shooter" Template add Invector HAP Shooter Link script.

vBasicLocomotiont@CameraState to vBasicLocomotiont@CameraState_HAP

vMeleeCombat@CameraState to vMeleeCombat@CameraState_HAP

vShooterMelee@CameraState to vShooterMelee@CameraState_HAP

13.- Add the component to the ThirdPersonCamera.

For integrating the Melee Template you should follow the same steps of the but follow the Melee Template Steps.

But If you want to continue using then use the Context Menu "Create Combat Inputs".

You can change the Type from Key to Input and add those Inputs to the

This will automatically add the component with the Events needed for the Rider Combat system to communicate/listen to external scripts in a non-dependant way.

For integrating the Shooter Template you should follow the same steps as the but follow the Shooter Template way.

Also, you need to follow the Steps.

🗃️
🚶
⚔️
🔫
🚶
⚔️
🔫
🚶
⚔️
🔫
🚶
⚔️
🔫
🚶
⚔️
🔫
🚶
⚔️
🔫
Integration Drive Folder
MInput
Unity Input Manager.
MEventListener
Basic Template
Malbers Input
Unity Input Manager.
MEventListener
Invector Weapon Settings
General Steps
Melee Template
Basic Template
Melee Template
Shooter Template
Adding Mount and Combat Layers to a new Animator
MRider.MountAnimal()
MRider.DismountAnimal()
HERE.
Mount input connected to the method MRider.MountAnimal()
Dismount input connected to the method MRider.DismountAnimal()