OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: pazuzu on 29 Jan 2004, 10:57:38

Title: M113med
Post by: pazuzu on 29 Jan 2004, 10:57:38
I was wondering if there is any way to make a regular M113 into a med M113 by using a script.

I find I have to use green trucks in my desert maps for support because  I dont want too many seperate addons in the map but if desert hummers or M113s could be scripted to heal, repair & rearm that would be very cool.

Thanks

Title: Re:M113med
Post by: StonedSoldier on 29 Jan 2004, 11:07:20
yo dude,

in the Init field of your unit put;

unitname setRepairCargo 1
#this gives it repair abilities

unitname setAmmoCargo 1
#this gives it rearm abilities

unitname setFuelCargo 1
#this gives it refuel abilities

for all the commands and stuff go here http://www.ofpec.com/editors/comref.php (http://www.ofpec.com/editors/comref.php)
Title: Re:M113med
Post by: pazuzu on 29 Jan 2004, 11:22:46
Thats great....thank you.

What about healing...(giving vehicle healing ability)?