OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: 456820 on 28 Sep 2005, 13:09:14

Title: carying over weapons
Post by: 456820 on 28 Sep 2005, 13:09:14
in a campaign how do you carry over the weapons from the previous mission
in the com ref it has more than one command theres
querrymagazine pool
querryweapon pool
and a few others i cant find (cause of the schools poor internet connection  ;D) which ones they are but i know theres another 2 commands and they all say roughly the same thing

anyway wich 2 commands should i use obdviously i want the magaxines carryed over and then how do i load them in the next mission
oh and should it work in Single player mode or will i have to use it in campaign mode only to test if it works
thanks

Title: Re:carying over weapons
Post by: macguba on 28 Sep 2005, 13:37:12
addWeaponPool
addMagazinePool
clearWeaponPool
clearMagazinePool
fillWeaponsFromPool
pickWeaponPool
putWeaponPool

There may be others, that's what I remembered/found on quick check.
Title: Re:carying over weapons
Post by: 456820 on 28 Sep 2005, 18:17:05
so wich of those do i use for carrying them over to the next mission ?
Title: Re:carying over weapons
Post by: macguba on 28 Sep 2005, 19:18:37
Err ... well ... all of them ... it depends on exactly what you want to do.    The 'Weaponpool' is the pool of weapons that you are carrying from one mission to the next.   These commands allow you to put things in, take them out and so on.    You'll need normal weapon and mag commands as well, to find out what units are carrying, and to give them weapons from the pool.   Save/loadStatus and saveVar commands may also come in handy.
Title: Re:carying over weapons
Post by: sim on 28 Sep 2005, 19:54:28
Here is a tut by Vektorboson

http://www.ofpec.com/editors/resource_view.php?id=123  :)