OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: brynn24865 on 30 Jan 2003, 14:55:58

Title: Transfer of Units
Post by: brynn24865 on 30 Jan 2003, 14:55:58
I read somewhere than in Resistance, you can carry over units from 1 mission to the next? How is this done in script and does it work for multiplayer campaigns?
Title: Re:Transfer of Units
Post by: Silver Fox on 30 Jan 2003, 19:25:46
Take a look in the ed depot! There are some "Campaign Description.ext" Tutes that you may find usefull

Good Luck  ;D
Title: Re:Transfer of Units
Post by: brynn24865 on 30 Jan 2003, 23:47:05
I have looked and so far they all just tell how to link missions together. They are all for pre-resistance editing. None of them mention how to keep units from one mission to the next.
Title: Re:Transfer of Units
Post by: Artak on 31 Jan 2003, 08:44:16
I know nothing about this but meybe you will find something out from the official command reference. It has heaps of commands used in campaings and their explinations.
Title: Re:Transfer of Units
Post by: Ottie on 31 Jan 2003, 13:12:22
there is a good tutorial from vektorbosen (I think) and is something with weapon pool, you can find it in the editor depot
Title: Re:Transfer of Units
Post by: Wolfrug on 31 Jan 2003, 20:50:48
well...this is just me, but there's this command, saveVar which saves a variable to work in all future campaign missions, works as so:

saveVar "variableName"

so, I suppose you could have a variable for the soldiers, like "jimmybobdead", and then do the old variable thing. And in the next mission you'd work with these variables when creating your team (for instance in the "condition of presence" space)

Right, just my suggestion. G'lucl (y)

Wolfrug out.