UseObjectAction Class
Declared on: line 24 of Lua/humanoid_actions/use_object.lua.
Inheritance: UseObjectAction ยป HumanoidAction
Inheritance: UseObjectAction ยป HumanoidAction
Method Index
- afterLoad(old, new) (inherited from HumanoidAction)
- disableTruncate() (inherited from HumanoidAction)
- enableWateringPlant()
- setAfterUse(after_use) (inherited from HumanoidAction)
- setCount(count) (inherited from HumanoidAction)
- setIsLeaving(is_leaving) (inherited from HumanoidAction)
- setLoopCallback(loop_callback) (inherited from HumanoidAction)
- setMustHappen(must_happen) (inherited from HumanoidAction)
- setProlongedUsage(prolonged)
- setUninterruptible(uninterruptible) (inherited from HumanoidAction)
Member Index
- after_use (*)
- count (*)
- idle_must_happen (*)
- is_entering (*)
- is_leaving (*)
- loop_callback (*)
- must_happen (*)
- name (*)
- no_truncate (*)
- object
- prolonged_usage
- saved_must_happen (*)
- state (*)
- uninterruptible (*)
- watering_plant
function UseObjectAction:UseObjectAction(object)
Construct a 'use object' action.
Parameters:
| Name | Type | Description |
|---|---|---|
| object | Object | Object to use. |
Declared on: line 29 of Lua/humanoid_actions/use_object.lua.
function UseObjectAction:enableWateringPlant()
Set the 'watering plant' flag.
Declared on: line 40 of Lua/humanoid_actions/use_object.lua.
function UseObjectAction:setProlongedUsage(prolonged)
Set prolonged usage of the object.
Parameters:
| Name | Type | Description |
|---|---|---|
| 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.