value_to_distance

Sets the value to the distance between two points in the trigger.

Categories: location, value

Required arguments

Key(s)DescriptionType
fromThe point in the trigger data to measure from.
Choices: player, victim, location, block, projectile, dispatcher
STRING
toThe point in the trigger data to measure to.
Choices: player, victim, location, block, projectile, dispatcher
STRING

Parameter transformers

  • adds VALUE

Example

mutators:
  - id: value_to_distance
    args:
      from: player|victim|location|block|projectile|dispatcher
      to: player|victim|location|block|projectile|dispatcher