Naev

Module pilotoutfit

Lua bindings to interact with pilot outfits.

Functions

outfit (po, Outfit) Gets the outfit of the PilotOutfit.
state (po, state) Sets the state of the PilotOutfit.
progress (po, progress) Sets the state progress of the PilotOutfit.
set (po, mod, val) Sets a temporary ship stat modifier of the pilot outfit.
clear (po) Clears all the temporary ship stat modifiers of the pilot outfit.


Functions

outfit (po, Outfit)
Gets the outfit of the PilotOutfit.

Parameters:

  • po PilotOutfit Pilot outfit to get the outfit of.
  • Outfit Outfit corresponding to the Pilot outfit.
state (po, state)
Sets the state of the PilotOutfit.

Parameters:

  • po PilotOutfit Pilot outfit to set the state of.
  • state string State to set the pilot outfit to. Can be either "off", "warmup", "on", or "cooldown".
progress (po, progress)
Sets the state progress of the PilotOutfit.

Parameters:

  • po PilotOutfit Pilot outfit to set the state of.
  • progress number Progress of the current state with 1 being started and 0 being done.
set (po, mod, val)
Sets a temporary ship stat modifier of the pilot outfit.

Parameters:

  • po PilotOutfit Pilot outfit to set the modifier of.
  • mod string Modifier name to set to. Same as in the XML definition.
  • val number Value to set the modifier to. In the case of booleans, 0 indicates false, while 1 indicates true.
clear (po)
Clears all the temporary ship stat modifiers of the pilot outfit.

Parameters:

  • po PilotOutfit Pilot outfit to clear temporary modifiers from.
generated by LDoc 1.4.6 Last updated 2021-06-25 09:20:37