OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: penguinman on 13 Aug 2005, 22:38:00

Title: vehicles through water
Post 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)
Title: Re:vehicles through water
Post by: bored_onion on 14 Aug 2005, 00:50:27
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.
Title: Re:vehicles through water
Post by: penguinman on 14 Aug 2005, 01:22:28
so can u do it? :D
Title: Re:vehicles through water
Post by: bored_onion on 14 Aug 2005, 11:31:45
dont know how to detect when a vehicle is in the water  :P
Title: Re:vehicles through water
Post by: Blanco on 14 Aug 2005, 12:45:17
Quote
dont know how to detect when a vehicle is in the water

Code: [Select]
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)

Title: Re:vehicles through water
Post by: bored_onion on 14 Aug 2005, 13:26:12
thing is though - where do you find shallow puddles in flashpoint?
Title: Re:vehicles through water
Post by: penguinman on 14 Aug 2005, 22:06:13
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