{"name":"getWaterFillPercentage","operator":null,"title":"getWaterFillPercentage","type":"command","url":"https://community.bistudio.com/wiki/getWaterFillPercentage","revid":363321,"updated":"2024-03-26T16:41:39Z","groups":["Object Manipulation"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"2.16"}],"since":{"game":"arma3","name":"Arma 3","version":"2.16"},"arma3_since":"2.16","branch":null,"locality":{"argument":"local","effect":null,"server_exec":false},"exec":null,"description":"Get an object's water filling.","syntaxes":[{"syntax":"getWaterFillPercentage obj","since":null,"effect":null,"exec":null,"params":[{"name":"obj","type":"Object","optional":false,"default":null,"description":"object to manipulate","types":["Object"],"since":null,"text":"obj: Object - object to manipulate"}],"returns":{"type":"Number","types":["Number"],"description":"water level in range 0..1 (empty to full)","text":"Number - water level in range 0..1 (empty to full)"},"form":"unary","operator":null,"left":null,"right":{"text":"obj","types":["Object"]}}],"examples":[{"text":"```sqf\nif (getWaterFillPercentage _myCar > 0) then\n{\n    hint \"My feet are wet.\";\n};\n```","code":["if (getWaterFillPercentage _myCar > 0) then\n{\n\thint \"My feet are wet.\";\n};"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["setWaterLeakiness","getWaterLeakiness","setWaterFillPercentage"],"notes":[],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: Object Manipulation","Introduced with Arma 3 version 2.16","Scripting Commands"]}