CorsixTH Lua Documentation

WalkAction Class

Declared on: line 21 of Lua/humanoid_actions/walk.lua.
Inheritance: WalkAction ยป HumanoidAction

Method Index

Member Index

(*) only used in superclass methods
function WalkAction:WalkAction(x, y, trimmed)

Action to walk to a given position.

Parameters:

NameTypeDescription
x int X coordinate of the destination tile.
y int Y coordinate of the destination tile.
trimmed boolean Optional parameter to finish action on re-route

Declared on: line 26 of Lua/humanoid_actions/walk.lua.

function WalkAction:enableWalkingToVaccinate()

Nurse is walking with the intention to vaccinate.

Declared on: line 48 of Lua/humanoid_actions/walk.lua.

function WalkAction:setIsEntering(entering)

Set a flag whether the walk enters a room.

Parameters:

NameTypeDescription
entering bool If set or nil, set the flag of entering the room.

Declared on: line 55 of Lua/humanoid_actions/walk.lua.