Healer

Restores health when you or friendlies are injured. Flees from hostiles.

​​

  • Walk within a defined zone - Peaceful NPC that doesn’t attack any targets - Heal specific wounded targets once they get near it - Its speed can be increased when it goes towards a wounded target - The healing value and rate can be changed within its parameters - Can flee once it detects an enemy nearby

This behaviour has not yet been migrated for use in multiplayer Experiences.

Common Uses

  • Create a moving NPC, or non-player character, or a stationary Object to heal the player or any other Object with a Health Component that does not have a full health bar

  • Make an Object follow the player, such as a pet, by lowering the player's health (for example, with special message Damage:1 sent to the Tag "Avatar") and setting the Heal Value of this Behaviour to 0

Communications

Inputs:

Detects the Avatar or other Tags

Outputs:

If Health is not full, moves toward and heals the Avatar or Objects with its target Tags

Parameters

OptionsDetails

Walking Zone - define the space where the Object will walk around passively. It may step up or down one block at a time. This parameter is visualised with a blue cube Gizmo that adjusts as you enter new X, Y, and Z values.

Walk Speed (slider) - set the walking speed of the Object using a slider or by entering a value. The value defines the amount of blocks travelled per second by the Object.

Heal Value (slider) - How many hit points the target is healed by for each iteration.

Healing Range (slider) - defines the distance at which the Object's target can be healed. This parameter is visualised with a green circle Gizmo that adjusts as you move the slider or change the value.

Healing Speed (slider) - defines how many times the target is healed per second.

Healing Detection Range (slider) - Range in which the Objects with the Tag to heal is detected. This parameter is visualised with a green circle Gizmo that adjusts as you move the slider or change the value.

Help Speed (slider) - The amount of blocks that the Object will travel per second towards a Tag to Heal when detected.

Can Flee - Determines whether the Object will flee if it detects a Tag to Flee within its Enemy Detection Range. Flee When Attacked - Determines whether the Object will flee if it is attacked. Flee Speed (slider) - The amount of blocks that the Object will travel per second when fleeing from a Tag. This parameter is visualised with a blue circle Gizmo that adjusts as you move the slider or change the value.

Enemy Detection Range - The range in which the Object will detect Tags to Flee. This parameter is visualised with a red circle Gizmo that adjusts as you move the slider or change the value.

Last updated

Logo

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