You are viewing an old version of this page. Return to the latest version.
Version of 15:29, 12 September 2013 by I need to Update My Profile
No categories assigned
LUA:UseWidget
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