OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: penguinman on 13 Aug 2005, 22:38:00
-
i was wondering if anybody could make a script that makes a big splash like if a truck or a tank drove into water(or in other words if any part of it went below 0 )
like this
(http://www.weatherstock.com/TW9.jpg)
-
you'd need to find out whether the unit was in the water (presumably the game knows this because it kills things when they go in it). then you could use the drop command to send water particles either side of you.
-
so can u do it? :D
-
dont know how to detect when a vehicle is in the water :P
-
dont know how to detect when a vehicle is in the water
Getpos vehiclename select 2 < -1.2
That's how COC detects the COCdiver is underwater.
There's also a function :
Overwater.sqf (http://www.ofpec.com/editors/funcref.php?letter=O#OverWater)
-
thing is though - where do you find shallow puddles in flashpoint?
-
well the ocean for one, if your driving a M113 and u drive it in to the ocean it would make a splash like that, or if a plane fell in the water, it could be used for all kinds of things if u added a paramiter to control the size of the splash