Jump to content
Sign in to follow this  
lato1982

is transfering variables between mission possible?

Recommended Posts

Hi,

I am wondering if there is a possibility to pass some variables between missions in a campaign? What I'm looking for is the possibility to to make some more complicated mission endings, not only end1 - end6.

An example: I've got a 8 men squad and I want to drive through the whole campaign without respawning my dead soldiers in each mission? Another example is, I want to give the player a nickname in mission 1, depended on how good he was. I would like to have the nickname used in the all follow up missions? Is this possible? (i know how to achieve this in one long mission, but no how to transfer the data into the next missions).

Thanks in advance,

Share this post


Link to post
Share on other sites

This calls for persistent data and thus for a database to store your data you want to be persistent over missions.

Arma2MySQL is a hot topic right now so why not indulge yourself into some reading? :D

Share this post


Link to post
Share on other sites

Hi, in a campaign you can use scripting command saveVar for this.

Share this post


Link to post
Share on other sites

advanced ways would be saving variables in uiNamespace or profileNamespace

Share this post


Link to post
Share on other sites

Thanks a lot, saveVar is exactly what I was looking for!

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×