Jump to content
Sign in to follow this  
nephilim

How to detect if palyer/ unit is in water

Recommended Posts

Havent really experimented on it, but i noticed that for land vehicles, there are points for landcontact LOD, but for sea class vehicles, BIS does not use landcontact LOD at all.......

There are scripts that seeks out where the bullets hits on the body ( via the geoLOD or hit points or fire lod?) but could a script find out .............

Soldiers can enter water, walk it in...but once he is immersed in it, he dies. Something to with height - height  = -1.5m?

I also noticed that when jeep class 'drives' on water, u cant order them to go anyway unlike tank/ship class where u can still command them to go where u want in the sea..........

Share this post


Link to post
Share on other sites

hmm

didnt the dkm mods commanche had a dust script?

yeah right......

i gonna check on that one

Share this post


Link to post
Share on other sites

_s= "emptydetector" camcreate [0,0,10]

_pos=getpos player

_s setpos[_pos select 0, _pos select 1, 0]

?getpos _s select 2<-3.1: {on land};goto"done"

{not on land}

#done

deletevehicle _s

Play with the negative number (-3.1)

Share this post


Link to post
Share on other sites

big thx

itll come in handy but erm

how do i now lets say execute another script/hint when this one is activaed/player is on water?

sorry im not that good....

Share this post


Link to post
Share on other sites
big thx

itll come in handy but erm

how do i now lets say execute another script/hint when this one is activaed/player is on water?

sorry im not that good....

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

_s= "emptydetector" camcreate [0,0,10]

#loop

_pos=getpos player

_s setpos[_pos select 0, _pos select 1, 0]

?getpos _s select 2<-3.1: [] exec "on_water.sqs";goto"done"

~1

goto "loop"

#done

deletevehicle _s

exit

RED

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×