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

Public Member Functions

boolean isReachableThroughWindowOrDoor (IsoGridSquare _square)
boolean isValid ()
boolean waitToStart ()
void setOnComplete (function _func, unknown _target)
void setOnCancel (function _func, unknown _target)
void update ()
void start ()
void stop ()
void forceComplete ()
void forceStop ()
void forceCancel ()
void perform ()
void faceLocation ()
 ISBuildAction (IsoPlayer character, ISBuildingObject item, number x, number y, number z, boolean north, string spriteName, number time)
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

function onCompleteFunc
unknown onCompleteTarget
function onCancelFunc
unknown onCancelTarget
number soundTime
number hammerSound
boolean doSaw
number sawSound
number craftingSound
InventoryItem hammer
number transactionId
boolean started
ISBuildingObject item
number x
number y
number z
boolean north
string spriteName
IsoGridSquare square
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

Static Public Attributes

static number worldSoundTime

Constructor & Destructor Documentation

◆ ISBuildAction()

ISBuildAction::ISBuildAction ( IsoPlayer character,
ISBuildingObject item,
number x,
number y,
number z,
boolean north,
string spriteName,
number time )

Member Function Documentation

◆ faceLocation()

void ISBuildAction::faceLocation ( )

◆ forceCancel()

void ISBuildAction::forceCancel ( )

◆ forceComplete()

void ISBuildAction::forceComplete ( )

◆ forceStop()

void ISBuildAction::forceStop ( )

◆ isReachableThroughWindowOrDoor()

boolean ISBuildAction::isReachableThroughWindowOrDoor ( IsoGridSquare _square)

◆ isValid()

boolean ISBuildAction::isValid ( )

◆ perform()

void ISBuildAction::perform ( )

◆ setOnCancel()

void ISBuildAction::setOnCancel ( function _func,
unknown _target )

◆ setOnComplete()

void ISBuildAction::setOnComplete ( function _func,
unknown _target )

◆ start()

void ISBuildAction::start ( )

◆ stop()

void ISBuildAction::stop ( )

◆ update()

void ISBuildAction::update ( )

◆ waitToStart()

boolean ISBuildAction::waitToStart ( )

Member Data Documentation

◆ craftingSound

number ISBuildAction::craftingSound

◆ doSaw

boolean ISBuildAction::doSaw

◆ hammer

InventoryItem ISBuildAction::hammer

◆ hammerSound

number ISBuildAction::hammerSound

◆ item

ISBuildingObject ISBuildAction::item

◆ north

boolean ISBuildAction::north

◆ onCancelFunc

function ISBuildAction::onCancelFunc

◆ onCancelTarget

unknown ISBuildAction::onCancelTarget

◆ onCompleteFunc

function ISBuildAction::onCompleteFunc

◆ onCompleteTarget

unknown ISBuildAction::onCompleteTarget

◆ sawSound

number ISBuildAction::sawSound

◆ soundTime

number ISBuildAction::soundTime

◆ spriteName

string ISBuildAction::spriteName

◆ square

IsoGridSquare ISBuildAction::square

◆ started

boolean ISBuildAction::started

◆ transactionId

number ISBuildAction::transactionId

◆ worldSoundTime

number ISBuildAction::worldSoundTime
static

◆ x

number ISBuildAction::x

◆ y

number ISBuildAction::y

◆ z

number ISBuildAction::z

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