Jump to content
Sign in to follow this  
zipman

mhq drops in water{help}

Recommended Posts

hi alitte help plz, when I have the chooper lift the mhq and it gets dropped in the sea it just sinks and don't blowup, is there a easy way I can get it to blowup on water/sea

thank you.

Share this post


Link to post
Share on other sites

Why would the vehicle blow up when it goes into the water?

Sorry, that's not much help. Just wondering.

Share this post


Link to post
Share on other sites
Why would the vehicle blow up when it goes into the water?

Sorry, that's not much help. Just wondering.

because fools take the mhq and drop it in the sea and it just sinks and stays there. so i would like it to blowup if it hits the sea. so it will respawn, dont want players who use the server to have to wait 40mins for it to respawn cos a few fools

Edited by zipman

Share this post


Link to post
Share on other sites

Something like this would work. Every 5 minutes, it checks if mhq is in water and less than 5 meters in altitude. If TRUE, then sets damage to 1 (destroyed). Put commented line in the vehicle INIT;

///// null = [this] execVM "sunkenMHQ.sqf";

_victor = _this select 0;

while {alive _victor} do {
    If {(surfaceIsWater position _victor) && ((getPosATL _victor) select 2 < 5)} then {
         _victor setDamage 1; 
               };
    sleep 300;
};

Untested, but I think it will work.

Edited by Fight9

Share this post


Link to post
Share on other sites
Something like this would work. Every 5 minutes, it checks if mhq is in water and less than 5 meters in altitude. If TRUE, then sets damage to 1 (destroyed). Put commented line in the vehicle INIT;

///// null = [this] execVM "sunkenMHQ.sqf";

_victor = _this select 0;

while {alive _victor} do {
    If {(surfaceIsWater position _victor) && ((getPosATL _victor) select 2 < 5)} then {
         _victor setDamage 1; 
               };
    sleep 300;
};

Untested, but I think it will work.

thx u, after i got a error i removed _victor = _ and it works great thanks again.

Share this post


Link to post
Share on other sites
thx u, after i got a error i removed _victor = _ and it works great thanks again.

Hmm... you might have applied it wrong. Either way, glad it worked out for you.

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  

×