CorsixTH Lua Documentation

UseObjectAction Class

Declared on: line 24 of Lua/humanoid_actions/use_object.lua.
Inheritance: UseObjectAction ยป HumanoidAction

Method Index

Member Index

(*) only used in superclass methods
function UseObjectAction:UseObjectAction(object)

Construct a 'use object' action.

Parameters:

NameTypeDescription
object Object Object to use.

Declared on: line 29 of Lua/humanoid_actions/use_object.lua.

function UseObjectAction:setProlongedUsage(prolonged)

Set prolonged usage of the object.

Parameters:

NameTypeDescription
prolonged bool or or or nil If set, enable prolonged usage of the object.

Declared on: line 47 of Lua/humanoid_actions/use_object.lua.