No categories assigned

LUA:IsBindAllowed

Revision as of 20:35, 11 September 2013 by Jabantiz (talk | contribs) (Created page with "= LUA Functions: IsBindAllowed() = Checks to see if the player can bind at its current location ==== Syntax ==== var = IsBindAllowed(param1) ==== Parameters ==== ; Required -...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

LUA Functions: IsBindAllowed()

Checks to see if the player can bind at its current location


Syntax

var = IsBindAllowed(param1)


Parameters

Required - param1 (Spawn)
param1 is the spawn trying to bind


Usage

function hailed(NPC, Spawn)
    if not IsBindAllowed(Spawn) then
        Say(NPC, "You can not bind here")
    end
end

The NPC will respond if the player can't bind at its current location

Notes

Returns a bool