Field Rations Functions

ace_field_rations_fnc_addStatusModifier

Description

Adds a status modifier. Should be called on all machines. Code must return a NUMBER which will be applied additively with other status changes.

Parameters

Index Description Datatype(s) Default Value
0 Status to modify (0 - Thirst, 1 - Hunger, 2 - Both) NUMBER  
1 Code (is passed the unit ) CODE  

Return Value

None

Example

[0, {}] call ace_field_rations_fnc_addStatusModifier

Authors

  • mharis001

ace_field_rations_fnc_getRemainingWater

Description

Returns the remaining water in a source.

Parameters

Index Description Datatype(s) Default Value
0 Water source OBJECT  

Return Value

Description Datatype(s)
Remaining water NUMBER

Example

[_source] call ace_field_rations_fnc_getRemainingWater

Authors

  • mharis001
  • PabstMirror

ace_field_rations_fnc_setRemainingWater

Description

Sets the remaining water supply for given water source.

Parameters

Index Description Datatype(s) Default Value
0 Water source OBJECT  
1 Amount (-10 - Infinite, -1 - Disabled) NUMBER  

Return Value

None

Example

[_source, 1000] call ace_field_rations_fnc_setRemainingWater

Authors

  • mharis001
  • PabstMirror