Difference between revisions of "LUA:IsGateAllowed"

(Created page with "= LUA Functions: IsGateAllowed() = Checks to see if the given spawn can gate ==== Syntax ==== var = IsGateAllowed(param1) ==== Parameters ==== ; Required - ''param1'' (Spawn)...")
 
(No difference)

Latest revision as of 20:40, 11 September 2013

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