OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: 456820 on 23 Aug 2006, 22:26:06

Title: Carrying over weapons and soldiers to next mission.
Post by: 456820 on 23 Aug 2006, 22:26:06
Well in my campaign i want to be able to carry over the weapons from the 1st mission to the second aswell as the men the squad has so if 4 men were reaming on the first mission you will have those same 4 men in the second same with the ammo.

I know there was a tutorial about this which i have lost since i reformatted and since ofpec went down. Does anyone have a link by any chance?
Cheers.
Title: Re: Carrying over weapons and soldiers to next mission.
Post by: h- on 25 Aug 2006, 08:28:37
In wait for the tutorial (I think I have it myself stored on one of the 8276348726378263 CDs/DVDs I have but couldn't find it just now) you could look up commands like addWeaponPool, clearWeaponPool, fillWeaponsFromPool, pickWeaponPool, putWeaponPool and queryWeaponPool from the ComRef (http://www.ofpec.com/COMREF/index.html)..
(not sure if I missed any of the commands though)..
Title: Re: Carrying over weapons and soldiers to next mission.
Post by: 456820 on 26 Aug 2006, 22:51:26
Thanks alot. Ive managed to get everything about right apart from i havent tested it yet.