setWaterLeakiness

From Bohemia Interactive Community
Revision as of 19:07, 20 November 2023 by Lou Montana (talk | contribs) (Fix)
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:
Set an object's water intake ratio when immersed.
Groups:
Object Manipulation

Syntax

Syntax:
obj setWaterLeakiness leakiness
Parameters:
obj: Object - object to manipulate
leakiness: Number - in range 0..1 where 0 is waterproof and 1 is full leak
Return Value:
Nothing

Examples

Example 1:
private _veh = vehicle player; if (surfaceIsWater getPosASL _veh) then { _veh setWaterLeakiness 1; };

Additional Information

See also:
getWaterLeakiness 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