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

Public Member Functions

boolean isValidStart ()
boolean waitToStart ()
boolean isValid ()
void update ()
void start ()
void stop ()
void serverStop ()
void perform ()
boolean complete ()
InventoryItem getRequiredItem ()
void eat (Food food, number percentage)
number getDuration ()
void getSecondItem ()
boolean isEatingRemaining (Food item)
 ISEatFoodAction (IsoPlayer character, Food item, number percentage)
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

number eatAudio
integer scrapeSound
boolean playedScrapeSound
Food item
number percentage
boolean carLighter
boolean openFlame
boolean useUtensil
boolean isEating
string eatSound
boolean ignoreHandsWounds
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

Constructor & Destructor Documentation

◆ ISEatFoodAction()

ISEatFoodAction::ISEatFoodAction ( IsoPlayer character,
Food item,
number percentage )

Member Function Documentation

◆ complete()

boolean ISEatFoodAction::complete ( )

◆ eat()

void ISEatFoodAction::eat ( Food food,
number percentage )

◆ getDuration()

number ISEatFoodAction::getDuration ( )

◆ getRequiredItem()

InventoryItem ISEatFoodAction::getRequiredItem ( )

◆ getSecondItem()

void ISEatFoodAction::getSecondItem ( )

◆ isEatingRemaining()

boolean ISEatFoodAction::isEatingRemaining ( Food item)

◆ isValid()

boolean ISEatFoodAction::isValid ( )

◆ isValidStart()

boolean ISEatFoodAction::isValidStart ( )

◆ perform()

void ISEatFoodAction::perform ( )

◆ serverStop()

void ISEatFoodAction::serverStop ( )

◆ start()

void ISEatFoodAction::start ( )

◆ stop()

void ISEatFoodAction::stop ( )

◆ update()

void ISEatFoodAction::update ( )

◆ waitToStart()

boolean ISEatFoodAction::waitToStart ( )

Member Data Documentation

◆ carLighter

boolean ISEatFoodAction::carLighter

◆ eatAudio

number ISEatFoodAction::eatAudio

◆ eatSound

string ISEatFoodAction::eatSound

◆ ignoreHandsWounds

boolean ISEatFoodAction::ignoreHandsWounds

◆ isEating

boolean ISEatFoodAction::isEating

◆ item

Food ISEatFoodAction::item

◆ openFlame

boolean ISEatFoodAction::openFlame

◆ percentage

number ISEatFoodAction::percentage

◆ playedScrapeSound

boolean ISEatFoodAction::playedScrapeSound

◆ scrapeSound

integer ISEatFoodAction::scrapeSound

◆ useUtensil

boolean ISEatFoodAction::useUtensil

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