No categories assigned

LUA:UseWidget


LUA:AllFunctions - UseWidget

Return to: LUA:AllFunctions | Tutorials | Portal | Forum | Project Manager | Bug Tracker


Triggers the given widget

Syntax

UseWidget(param1)

Parameters

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


Example

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