setWaterFillPercentage: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) (Page creation) |
Lou Montana (talk | contribs) m (Text replacement - "↵|branch= dev↵↵" to " ") |
||
Line 3: | Line 3: | ||
|game1= arma3 | |game1= arma3 | ||
|version1= 2.16 | |version1= 2.16 | ||
|arg= local | |arg= local |
Latest revision as of 17:41, 26 March 2024
Description
- Description:
- Set an object's water filling.
- Groups:
- Object Manipulation
Syntax
- Syntax:
- obj setWaterFillPercentage level
- Parameters:
- obj: Object - object to manipulate
- level: Number - water level in range 0..1 (empty to full)
- Return Value:
- Nothing
Examples
- Example 1:
- if (getWaterLeakiness _myCar > 0 && surfaceIsWater getPosASL _myCar) then { _myCar setWaterFillPercentage 1; hint "I told you not to go in the water!"; };
Additional Information
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