Skip to reading
Lua Scripting

Helper functions and proxy methods / continued

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView PDF page

Earlier edition reference / Current 0.86.4.0 checked action IDs > p. 95

Helper functions and proxy methods / continued#

record:PlayAnimation(animation_name)

record:StopAnimation()

record:SetVisible(visible_value)

record:SetEnabled(enabled_value)

included:Call(function_name = "run", arguments = Array{}, context = {}) · use AwaitCall for completion

included:Run(context = {}) · use AwaitCall for completion

included:Get(variable_name, fallback = nil)

included:Set(variable_name, value)

included:Emit(event_name, context = {}) · use AwaitCall for completion

Global:Get(script_id)

Global:IDs()

PCA:Get(collection_name)

PCA:Has(collection_name)

Lua-specific globals: await(Wait(seconds)), await(Parallel(functionA, functionB, ...)), and

await(AwaitCall(target, methodName, ...)).

Page 45 of 133Permalink
Go to page