OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: hobson_matt on 18 Mar 2003, 22:47:13

Title: Rearmin mid-mission
Post by: hobson_matt on 18 Mar 2003, 22:47:13
Hi,

i am creating a Gulf war mission in which there is a full on assault on the Iraqi border, is it possible for me to re-arm my tanks after the front line?  i Know i can set healh to full, but can i set ammo back to how it was at the beginning?
Title: Re:Rearmin mid-mission
Post by: Iwesshome on 18 Mar 2003, 22:56:08
Why dont you make a radio trigger and order an Ammo Truck to come support you?

IW
Title: Re:Rearmin mid-mission
Post by: hobson_matt on 18 Mar 2003, 22:59:21
I did think of this, am thinking of making choppers bring ammo trucks in by hanging them underneath anyway, but i want more control over what ammo is added, really need to know if i can use (addmagazine"XX") for tanks and if i can then what is the list of ammo names, any ideas?
Title: Re:Rearmin mid-mission
Post by: macguba on 18 Mar 2003, 23:14:09
Check the Ed Depot, the ammo listing for 1.91 has a comment with vehicle weapons, that might help you.  

Tutorials - references - weapon and ammo lists.
Title: Re:Rearmin mid-mission
Post by: Kaliyuga on 18 Mar 2003, 23:41:11
What kinda armor do you want to rearm?

I have a script that covers about every official vehicle

made by DeadMeat and updated a little by me to include some more recent BIS vehicles

I present to you .....  the reload script ;)

use:

 [Unitname,"unittype"] exec "reload.sqs"

valid "unit types" are:

A10 : A10LGB : AH1 : UH60 : UH60/mg : CH47D : AH64 : OH58

SU25 : Mi24 : Mi17

M2 : M1A1 : M2A2 : M60 : M113 : MIIPBR : VULCAN : JEEP

T80 : T72 : BMP : BMP2 : BOAT : SHILKA

T55


Now, This script will do a full reload of the vehicle you use it on ....
so if you so desire you can edit it to only reload one kind of round.... etc..

have fun
Title: Re:Rearmin mid-mission
Post by: hobson_matt on 18 Mar 2003, 23:52:54
Fantastic, works a treat, now just need to get round a small problem with bringing in my ammo/armour trucks.  I have a script which flies them in and i know that it works fine, i have copied this before into other missions, but now the mission cannot find the .sqs file, odd!!
Title: Re:Rearmin mid-mission
Post by: macguba on 18 Mar 2003, 23:58:51
Probably a typo.

Or the ultimate embarrassement, the .sqs isn't in the mission folder  :-[ :-[ :-[ :)
Title: Re:Rearmin mid-mission
Post by: hobson_matt on 19 Mar 2003, 00:05:24
HEH, nope, no typo and the file is in the folder, i have a chopper, a chute, an ammo truck and a trigger that in the original mission work fine.  if i copy these to another mission and move the sqs file, then it doesnt work, an the anoying thing is that i have done it before!!!!!!
Title: Re:Rearmin mid-mission
Post by: Flapje on 19 Mar 2003, 11:27:38
maybe, by accident, it's a .sqs.txt now?  ;D you never know  ;)