Melee Enemy

Hostile NPC that attack you or others that get too close.

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

Common Uses

  • 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)

Communications

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

Parameters

OptionsDetails

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.

Last updated

Logo

Copyright Β© 2012- 2023 The Sandbox. All Rights Reserved.