Jump to content
Sign in to follow this  
stupidwhitekid75

Lose all fuel at trigger

Recommended Posts

I was trying to figure out if there's a way that I can make a group of vehicles lose all there fuel so they're unable to move once they reach a certain waypoint. However, I want them to be able to gain it back later. I've been trying to make a convoy filled with soldiers stop at a certain area and stay stopped in a convoy formation while the rest of the soldiers disembark and engage. Once the enemy has been eliminated they will board back up and continue moving forward. I figured I could do this with a switch of some sort but as for making the convoy stop in it's formation and not move at all has been a challenge for me. Any ideas?

Share this post


Link to post
Share on other sites

Well you can use the setfuel command.

A simple way would be to set a name for all the vehicles and then on the waypoint, on it's activation type something like Vehicle1 setfuel 0;Vehicle2 setfuel 0;etc

Share this post


Link to post
Share on other sites

tag your vehicles with:

position[]={4734.4473,339,10185.331};

azimut=205;

id=163;

side="EMPTY";

vehicle="M113Ambul_UN_EP1";

skill=0.60000002;

text="TruckW1";

then you can make an array of them in the init or in your script

mytruckarray = [TruckW1,TruckW2,TruckW3,TruckW4,TruckW5];

(or use _mytruckarray if clientside script)

put a marker in your mission

position[]={6559.3149,6,2383.0425};//wherever

name="activationpoint";

type="Empty";

colorName="ColorBlack";

then make a trigger

_pos = getMarkerPos activationpoint;

DetectTruck = createTrigger ["EmptyDetector", _pos];

DetectTruck setTriggerActivation ["WEST", "PRESENT", true];

DetectTruck setTriggerArea [600, 600, 0, true];

if ("Car" countType list DetectTruck > 0) then

{

_Trucksinpos = nearestObjects [mytrigger, mytruckarray,10];

{if (_x in mytruckarray) then {_x setFuel 0}} forEach _Trucksinpos;

};

well that's almost it... should give you an idea.

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  

×