No categories assigned

LUA:IsFlanking

Revision as of 17:15, 15 December 2013 by Jabantiz (talk | contribs) (Created page with "= LUA Functions: IsFlanking() = Checks to see if the given spawn is flanking the target spawn ==== Syntax ==== IsFlanking(param1, param2) ==== Parameters ==== ; Required - ''p...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

LUA Functions: IsFlanking()

Checks to see if the given spawn is flanking the target spawn

Syntax

IsFlanking(param1, param2)


Parameters

Required - param1 (Spawn), param2 (Spawn)
param1 is the spawn who will be checking the other
param2 is the spawn we want to know if it is flanking


Usage

function precast(Caster, Target)
    return IsFlanking(Target, Caster)
end

Will check to see if the caster is flanking the target before casting