getWaterFillPercentage

From Bohemia Interactive Community
Revision as of 19:12, 20 November 2023 by Lou Montana (talk | contribs) (Page creation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Hover & click on the images for description
Only available in Development branch(es) until its release with Arma 3 patch v2.16.

Description

Description:
Get an object's water filling.
Groups:
Object Manipulation

Syntax

Syntax:
getWaterFillPercentage obj
Parameters:
obj: Object - object to manipulate
Return Value:
Number - water level in range 0..1 (empty to full)

Examples

Example 1:
if (getWaterFillPercentage _myCar > 0) then { hint "My feet are wet."; };

Additional Information

See also:
setWaterLeakiness getWaterLeakiness setWaterFillPercentage

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note