Project Zomboid Lua Docs 29123
Unofficial documentation for Project Zomboid's Lua
Loading...
Searching...
No Matches
ISPathFindAction Class Reference
Inheritance diagram for ISPathFindAction:
ISBaseTimedAction ISBaseObject

Public Member Functions

boolean isValid ()
void update ()
void start ()
void stop ()
void perform ()
void setOnComplete (function func, unknown arg1, unknown arg2, unknown arg3, unknown arg4)
void setOnFail (function func, unknown arg1, unknown arg2, unknown arg3, unknown arg4)
void setRunActionsAfterFailing (boolean b)
ISPathFindAction pathToLocationF (IsoPlayer character, number targetX, number targetY, number targetZ)
ISPathFindAction pathToNearest (IsoPlayer character, number[] locations)
ISPathFindAction pathToSitOnFurniture (IsoPlayer character, IsoObject bed, boolean bAnySpriteGridObject)
ISPathFindAction pathToVehicleAdjacent (IsoPlayer character, BaseVehicle vehicle)
ISPathFindAction pathToVehicleArea (IsoPlayer character, BaseVehicle vehicle, string areaId)
ISPathFindAction pathToVehicleSeat (IsoPlayer character, BaseVehicle vehicle, integer seat)
Public Member Functions inherited from ISBaseTimedAction
boolean isValidStart ()
void isValid ()
boolean isUsingTimeout ()
void update ()
void forceComplete ()
void forceStop ()
void forceCancel ()
number getJobDelta ()
unknown resetJobDelta ()
boolean waitToStart ()
void start ()
boolean isStarted ()
void stop ()
void perform ()
number getDuration ()
void create ()
void begin ()
void setCurrentTime (number time)
void setTime (number time)
number adjustMaxTime (number maxTime)
void setActionAnim (CharacterActionAnims|string _action, nil _displayItemModels)
void setOverrideHandModels (InventoryItem _primaryHand, InventoryItem _secondaryHand, boolean _resetModel)
void setOverrideHandModelsString (string _primaryHand, string _secondaryHand, boolean _resetModel)
void overrideWeaponType ()
void restoreWeaponType ()
void setAnimVariable (string _key, string _val)
ISBaseTimedAction addAfter (ISBaseTimedAction action)
void beginAddingActions ()
boolean endAddingActions ()
void getDeltaModifiers (MoveDeltaModifiers deltas)
 ISBaseTimedAction (IsoPlayer character)
Public Member Functions inherited from ISBaseObject
void initialise ()
ISBaseObject derive (string type)
void addEventListener (string _event, function _callback, unknown _target)
void removeEventListener (string _event, function _callback)
void triggerEvent (string _event, unknown ...)
void clearEventListeners ()
 ISBaseObject ()

Public Attributes

IsoObject goalFurnitureObject
function onCompleteFunc
table onCompleteArgs
function onFailFunc
table onFailArgs
boolean runActionsAfterFailing
 goal
Public Attributes inherited from ISBaseTimedAction
number maxTime
LuaTimedActionNew action
boolean _isAddingActions
number _numAddedActions
IsoPlayer character
boolean stopOnWalk
boolean stopOnRun
boolean stopOnAim
number caloriesModifier
boolean useProgressBar
boolean forceProgressBar
boolean loopedAction
Path path
string name
NetTimedAction netAction
Public Attributes inherited from ISBaseObject
string Type
table< string, table< function, unknown > > __eventListeners

Member Function Documentation

◆ isValid()

boolean ISPathFindAction::isValid ( )

◆ pathToLocationF()

ISPathFindAction ISPathFindAction::pathToLocationF ( IsoPlayer character,
number targetX,
number targetY,
number targetZ )

◆ pathToNearest()

ISPathFindAction ISPathFindAction::pathToNearest ( IsoPlayer character,
number[] locations )

◆ pathToSitOnFurniture()

ISPathFindAction ISPathFindAction::pathToSitOnFurniture ( IsoPlayer character,
IsoObject bed,
boolean bAnySpriteGridObject )

◆ pathToVehicleAdjacent()

ISPathFindAction ISPathFindAction::pathToVehicleAdjacent ( IsoPlayer character,
BaseVehicle vehicle )

◆ pathToVehicleArea()

ISPathFindAction ISPathFindAction::pathToVehicleArea ( IsoPlayer character,
BaseVehicle vehicle,
string areaId )

◆ pathToVehicleSeat()

ISPathFindAction ISPathFindAction::pathToVehicleSeat ( IsoPlayer character,
BaseVehicle vehicle,
integer seat )

◆ perform()

void ISPathFindAction::perform ( )

◆ setOnComplete()

void ISPathFindAction::setOnComplete ( function func,
unknown arg1,
unknown arg2,
unknown arg3,
unknown arg4 )

◆ setOnFail()

void ISPathFindAction::setOnFail ( function func,
unknown arg1,
unknown arg2,
unknown arg3,
unknown arg4 )

◆ setRunActionsAfterFailing()

void ISPathFindAction::setRunActionsAfterFailing ( boolean b)

◆ start()

void ISPathFindAction::start ( )

◆ stop()

void ISPathFindAction::stop ( )

◆ update()

void ISPathFindAction::update ( )

Member Data Documentation

◆ goal

ISPathFindAction::goal

◆ goalFurnitureObject

IsoObject ISPathFindAction::goalFurnitureObject

◆ onCompleteArgs

table ISPathFindAction::onCompleteArgs

◆ onCompleteFunc

function ISPathFindAction::onCompleteFunc

◆ onFailArgs

table ISPathFindAction::onFailArgs

◆ onFailFunc

function ISPathFindAction::onFailFunc

◆ runActionsAfterFailing

boolean ISPathFindAction::runActionsAfterFailing

The documentation for this class was generated from the following file: