getWaterLeakiness: 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= global
|arg= global

Latest revision as of 18:41, 26 March 2024

Hover & click on the images for description

Description

Description:
Get an object's water intake ratio when immersed.
Groups:
Object Manipulation

Syntax

Syntax:
getWaterLeakiness obj
Parameters:
obj: Object - object to check
Return Value:
Number in range 0..1 where 0 is waterproof and 1 is full leak

Examples

Example 1:
if (getWaterLeakiness _myCar > 0) then { hint "don't go in the water with it!"; };

Additional Information

See also:
setWaterLeakiness setWaterFillPercentage getWaterFillPercentage

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