OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Mike on 11 Sep 2002, 03:26:03

Title: Refuel, Rearm, Repair
Post by: Mike on 11 Sep 2002, 03:26:03
Hey...

Is it possible to make a radio trigger that repairs, refuels and rearms a heli/tank/jeep etc.

I know you can addfuel with the

this SetFuel Ammount#         - what is the max? 0- ?10?

then there is the dammage one, Im pretty sure you can use this to repair it?....

this SetDammage 0           - will it repair?

and for the ammo... Just a complete guess..?

this SetAmmo Ammount#         -no idea, I know you can add magazines...

--------------------------------------

My problem, Im unsure about that setammo command... I could remove the weapons and then rearm the unit with Full stregnth.. but thats a pain in tha arse..   :gunman: :booty:


So my questions:

what number sets fuel to max?

will setdammage 0 repair a vehicle.. (even if its dead?)

And finally what is the best way to re-arm a vehicle?
Title: Re:Refuel, Rearm, Repair
Post by: macguba on 11 Sep 2002, 03:42:23
For most things in this little ol' game the min is 0 and the max is 1.   But hit the command refs m8, they will answer most of this.

A radio trigger is just a trigger that is fired manually, so anything that can be done, can be done with a radio trigger.

setdammage 0 will repair a vehicle but you'll have to sort out the crew seperately.     If your vehicle is called tank then the driver will be called tankD, gunner tankG and commander tankC so presumably if you set them to 0 too they would pick themselves up and get back in the tank.