saveVar: Difference between revisions
Jump to navigation
Jump to search
(add. classification) |
m (VBS2 scripting category removal) |
||
Line 37: | Line 37: | ||
[[Category:Scripting Commands ArmA|SAVEVAR]] | [[Category:Scripting Commands ArmA|SAVEVAR]] | ||
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]] | [[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]] | ||
Revision as of 05:17, 19 July 2011
Description
- Description:
- Save variable value into the campaign space. This variable is available to all following missions in the campaign.
- Groups:
- Uncategorised
Syntax
Examples
- Example 1:
saveVar "varOne"
Additional Information
- See also:
- See also needed
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
Notes
-
If you try to saveVar a vehicle saved in your variable (SavedVars = [Car1]; saveVar "SavedVars"), then Car1 will not be properly "saved", refering to ObjNull if you try to use it in subsequent missions, even if a vehicle with the same vehicle varname exists. To get around this, save the vehicle's varname as a string (SavedVars = [str(Car1)]) and then when you need it just use call compile to "unstring" the varname (_car = call compile (SavedVars select 0);). --Wolfrug 22:56, 28 January 2009 (CET)