Jump to content
Sign in to follow this  
Sneaker-78-

Rearm/refeul spot

Recommended Posts

Hi all!

I was looking around for an script to make an refuel/ rearm point on the airbase for jets and for choppers on a heli pad or something, but i cant find one.

I thougth i saw one in a mission but i cant remember wich one, so if someone can help me

That would be great .

Share this post


Link to post
Share on other sites

I my missions we use support trucks repair/ammo/fuel. I guess that's what they're for??

Share this post


Link to post
Share on other sites

i have one that uses a trigger...

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

while {(true)} do {

{

if (not (_x isKindOf "Man") and (count crew _x != 0) and (speed _x < 1) and (speed _x > -1) and (getPos _x select 2 < 1)) then {

_x setVehicleAmmo 1;

while {(count crew _x != 0) and ((damage _x > 0) or (fuel _x < 0.99)) and (speed _x < 1) and (speed _x > -1) and (getPos _x select 2 < 1)} do {

if (damage _x > 0) then {

_x setDamage ((damage _x) - 0.01);

};

if (fuel _x < 1) then {

_x setFuel ((fuel _x) + 0.01);

};

sleep 0.1;

};

};

} forEach list _this;

sleep 1;

};

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  

×