Forum Jump :

Author Message


Posts: 1
Rank:


Level: Member

Country: us
Location:
Occupation:
Age:
In-game name:

 
#1 Posted at 2014-01-11 23:37        
     
Hi all. I'm making a mission in Arma 2 and I was wondering if there is a script to make an item act like a vehicle service point. For instance, a script that could make it to were if you land a helicopter on a helipad it refuels, rearms, and repairs said helicopter. Or to were if you drove a car into an area it would do the very same.

Thanks in advance! :-)


Author Message


Posts: 635
Rank:


Level: Member

Country: uk
Location: N.W.
Occupation:
Age: 30
In-game name: big_wilk

 
#2 Posted at 2014-01-12 11:20        
     
Your one stop shop for all your scripting needs:

http://www.kylania.com/ex/?p=28


Advertisement


Author Message


Posts: 2
Rank:


Level: Member

Country: de
Location:
Occupation:
Age: 27
In-game name: [3.JgKp]pestKater

 
#3 Posted at 2014-01-14 05:16        
     
I use the X Relaod Script by Xeno: http://www.armaholic.com/page.php?id=16743

Just set the trigger on the helipad and use the given condition for the trigger. It will only execute if the heli is not over 1 meter, so it won't crash by fly by.

It repairs, refuels and reloads the vehicle.

It's the same script Xeno used for this "Domination 2".


Author Message


Posts: 67
Rank:


Level: Member

Country: us
Location: eastern US
Occupation: HVAC/r researcher tester
Age: 29
In-game name: [SCF]W1.Shadowhog

 
#4 Posted at 2014-01-17 04:05        
     
A semi simple solution would be this, add the following to the unit you wish to have repaired/refueled
this addAction ["Repair POS", "service.sqf", [], 1, false, true];
and this be a basic service.sqf
_unit = _this select 1;
_unit setDamage 0;
im not sure what the setfuel code actually is but that otta do it and rearm might go into the sqf as well may want to add hint to the sqf as well

COD like my fav game omg i got like 20 golden weapons and the exclusive hot pink camo for men omg top scorer me is