Melee Enemy
Hostile NPC that attack you or others that get too close.
Last updated
Hostile NPC that attack you or others that get too close.
Last updated
Copyright © 2012- 2023 The Sandbox. All Rights Reserved.
This behaviour has not yet been migrated for use in multiplayer Experiences.
Walk within a defined zone - Attacks Avatar within his range - Once attacked by something, it counter attacks immediately
Enemy NPCs, or non-player characters, that will attack players, Citizens, Soldiers, etc.
Creating factions of fighters with specific targets using Tags
Creating anything that will use Attack animations and destroy other Objects (even non-living things - apply a Health Component and hide the health bar)
Inputs: Detects specified Tags (default Tag is Avatar) | Outputs: If any of its Tags to Attack are detected, moves toward and attacks the Avatar or Objects with its target Tags |
Options | Details |
---|---|
Tags to Attack - Add or remove tags that you want the Object to attack upon detection. | |
Motion Speed - Defines the amount of blocks traveled by the Object while chasing a target. | |
(Locked) | |
Chasing Zone (slider) - defines the area in which your Object can chase a target. This parameter is visualised with a green circle Gizmo that adjusts as you move the slider or change the value. | |
(Locked) | |
Can Block Attacks - Toggle this option on or off to define whether your Object is able to block attacks. | |
Attack Damage (slider) - Defines how many points of damage your Object will deal with a single hit. Attack Rate (slider) - Defines the time in seconds between each attack the Object performs. | |
Detection Range (slider) - defines the area in which your Object will detect tags to attack. This parameter is visualised with a yellow circle Gizmo that adjusts as you move the slider or change the value. |
Parameters with a symbol are currently locked and cannot be interacted with.