RPG-System: All-In-One | Documentation
  • Welcome
  • Discord
  • Implementation
    • Migrating
    • Implementing
      • Network UniqueID
    • Tips
      • Optional Config settings
  • Good to know
    • Global Settings
    • Get RPG Reference of a Player
    • Experience Penalty on Death
    • Copy Player Info | Make Clones
  • Leveling System
    • Overview
    • Spendable Stat Points
  • Class System
    • Overview
    • Adding a new Class
    • Add a Skill Tree to a Class
  • Status Attributes
    • Stats
      • Stat Bonus
      • Add a new Status Attributes (Stat Bonus)
    • Elements
      • Element Bonus
      • Add a new Element
    • Attack Bonus
  • Item/Equipment System
    • Item Datatable
      • Base Item Stat Bonus (ATK, DEF)
      • Item Grade/Rarity Scaling
    • Stat Bonuses
    • Socket/Gem Slots
    • Adding a new Item
    • Add a new ItemType
    • Item Tips & Tricks
      • Prevent Items from being Lootable Until Conditions Met
  • Inventory System
    • Overview
    • Socket/Gem Slot
    • Currency
      • Add a New Currency
    • Refinement System
    • Personal Storage System
    • Auto Loot
      • Quick-Loot/Take All Items
    • Functions
      • EquipItem
      • UnequipItem
      • DropItem
        • SplitDrop
      • UseConsumableItem
        • ItemCallEvent
      • GetItemCooldown
      • SetInventorySlot
      • GetInventorySlot
      • SetEquipmentSlot
      • GetEquipmentSlot
      • InventorySwapItem
      • InventoryAddItem
      • InventoryRemoveItem
      • GetFreeInventorySlot
      • InventoryHasItem
      • InventoryGetItemAmount
      • InventoryTryStack
      • AddCurrency
      • GetCurrency
      • SetRefineLevel
  • Status Effects System
    • Overview
    • Add a new Status Effect
    • Functions
      • Add Status Effect
      • Remove Status Effect
      • Has Status Effect
  • Crowd Control System
    • Overview
    • Add a new Crowd Control
    • Functions
      • AddCrowdControl
      • RemoveCrowdControl
      • HasCrowdControl
      • OnCrowdControl
  • Skill System
    • Skills
      • Add a new Skill
      • Creating a Ranged Projectile
      • Modifying Skill Upgrades
      • Skill Database Parameters
      • Custom Skill Logic
    • Skill Trees
      • Add a new Skill Tree
      • Add Skills to an Skill Tree
      • Add a Skill Tree to a Class
    • Skill Functions
      • SetBasicAttackInfo
      • SetCurrentSkill
      • UseSkill
      • ExecuteSkill
      • GetSkillATK
      • SetSkillUpgrades
      • SetSkillIndicatorLocation
        • First/Third-Person
        • Top-Down
      • SelectTarget
        • First/Third-Person
        • Top-Down
      • ⚔️BasicAttack
    • Skill Module
      • Event Skill Initialized
      • Event Skill Start
      • Event Skill End
      • Multi-Hit Parameters
    • Tips & Tricks
      • Spawn Module on Socket Location
  • Hotbar
    • Hotbar
  • Crafting System
    • Overview
    • Creating a new Item
  • Shop System
    • Overview
  • A.I Systems
    • Enemies
      • Creating a new Enemy
      • A.I Spawner Sample
    • Companions
      • Add new Companion
    • Minions
    • Pets
      • Add new Pet
      • Add new Pet Cube
    • Tips & Tricks
      • Force Companion to Attack
  • Quest System
    • Overview
    • Pre-made Task Types
    • Objectives
  • Party & Chat System
    • Parties
    • Chat
  • Other Subsystems
    • Interact System
      • Create a Interactable Object
    • Drop System
    • Save System
    • Custom Variable System
      • AddCustomVariable
        • Interact Example
    • Custom Dispatcher System
      • Example from the Demo
Powered by GitBook
On this page
  1. A.I Systems
  2. Tips & Tricks

Force Companion to Attack

PreviousTips & TricksNextOverview

Last updated 2 years ago

You can set the target of your companions very easily by calling the "OnSlaveMasterNewTarget" dispatcher.

If you want to do it in a , you could do it with a skill that has "requiresTarget" enabled, this means you have to select a Target to execute the skill, then the "Target" variable inside the skillmodule can be used to set it as the new target for all your companions.

Skill Module
The dispatcher for OnSlaveMasterNewTarget
The Skill Module for OnSlaveNewTarget
Page cover image