No categories assigned

LUA:IsGateAllowed

Revision as of 20:40, 11 September 2013 by Jabantiz (talk | contribs) (Created page with "= LUA Functions: IsGateAllowed() = Checks to see if the given spawn can gate ==== Syntax ==== var = IsGateAllowed(param1) ==== Parameters ==== ; Required - ''param1'' (Spawn)...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

LUA Functions: IsGateAllowed()

Checks to see if the given spawn can gate


Syntax

var = IsGateAllowed(param1)


Parameters

Required - param1 (Spawn)
param1 is the spawn we want to check


Usage

function cast(Caster, Target)
    if IsGateAllowed(Caster) then
        Gate(Caster)
    end
end

This spell will check to see if the caster can gate before actually trying to gate

Notes

Returns a bool