No categories assigned

LUA:UseWidget

Revision as of 15:29, 12 September 2013 by Jabantiz (talk | contribs) (Created page with "= LUA Functions: UseWidget() = Triggers the given widget ==== Syntax ==== UseWidget(param1) ==== Parameters ==== ; Required - ''param1'' (Spawn) : ''param1'' is the widget to...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

LUA Functions: UseWidget()

Triggers the given widget


Syntax

UseWidget(param1)


Parameters

Required - param1 (Spawn)
param1 is the widget to use


Usage

function hailed(NPC, Spawn)
    local widget = GetSpawn(Spawn, 1234)
    UseWidget(widget)
end

When this NPC is hailed the widget with DB ID 1234 will activate

Notes

The given spawn must be a widget or else this function won't do anything