setWaterLeakiness: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Page creation)
 
m (Text replacement - "↵|branch= dev↵↵" to " ")
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
|game1= arma3
|game1= arma3
|version1= 2.16
|version1= 2.16
|branch= dev


|arg= local
|arg= local
Line 18: Line 16:
|p1= obj: [[Object]] - object to manipulate
|p1= obj: [[Object]] - object to manipulate


|p2= leakiness: [[Object]] - in range 0..1 where 0 is waterproof and 1 is full leak
|p2= leakiness: [[Number]] - in range 0..1 where 0 is waterproof and 1 is full leak


|r1= [[Nothing]]
|r1= [[Nothing]]

Latest revision as of 17:41, 26 March 2024

Hover & click on the images for description

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