Home   Help Search Login Register  

Author Topic: Unit in water ?  (Read 440 times)

0 Members and 1 Guest are viewing this topic.

Offline Kuro

  • Former Staff
  • ****
  • 2./FschJgBtl 251 Green Devils
    • VBS2 Mission Download Site
Unit in water ?
« on: 26 Aug 2003, 03:31:29 »
I have the following problem:

In my mission a support heli can be shoot down. If this happens he coming down in good old BHD manner. Then the player is ordered to check the crash site.

Is there a easy way to check is the crash site is inside a River or in the ocean ?

My idea is something like

Pos IsWater
returns true/false if the position is in the water.

Thanks
Kuro

Kaliyuga

  • Guest
Re:Unit in water ?
« Reply #1 on: 26 Aug 2003, 03:33:20 »
 You can detect the units height Kuro ... I'm fairly certain that's how the CoC swim system works...

it detects height of the unit then moves them into the driver position of an underwater vehicle..

 I'm not sure exactly how it is done.. but I bet a little peek at the scripting on it would lead you in the right direction ...

Offline Kuro

  • Former Staff
  • ****
  • 2./FschJgBtl 251 Green Devils
    • VBS2 Mission Download Site
Re:Unit in water ?
« Reply #2 on: 26 Aug 2003, 04:15:13 »
Hello

*Slap on the Forehead*

Many thanks. Of course. i will check it this evening, sound very promising and easy.

Greetings
Kuro