No categories assigned

LUA:GetRunbackDistance

LUA Functions: GetRunbackDistance()

Gets the distance to the given spawns run back location


Syntax

GetRunbackDistance(param1)


Parameters

Required - param1 (Spawn)
param1 is the spawn whos run back distance we want

Usage

function hailed_busy(NPC, Spawn)
    Say(NPC, "I am " .. GetRunbackDistance(NPC) .. " from my run back location")
end

This will have the spawn respond to a hail while it is in combat with the distance to its run back location.

Notes

This returns a float value