getWaterFillPercentage: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Page creation)
 
m (Text replacement - "↵|branch= dev↵↵" to " ")
 
Line 3: Line 3:
|game1= arma3
|game1= arma3
|version1= 2.16
|version1= 2.16
|branch= dev


|arg= local
|arg= local

Latest revision as of 17:41, 26 March 2024

Hover & click on the images for description

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