zipman 0 Posted February 2, 2014 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
fight9 14 Posted February 2, 2014 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
na_palm 19 Posted February 2, 2014 this could help you: surfaceIsWater Share this post Link to post Share on other sites
zipman 0 Posted February 2, 2014 (edited) 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 February 2, 2014 by zipman Share this post Link to post Share on other sites
fight9 14 Posted February 2, 2014 (edited) 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 February 2, 2014 by Fight9 Share this post Link to post Share on other sites
zipman 0 Posted February 3, 2014 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
fight9 14 Posted February 3, 2014 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