saveVar: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "\[\[[cC]ategory:[sS]cripting [cC]ommands\|[a-z A-Z 0-9_]+\]\]" to "") |
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:Scripting Commands OFP 1.[4-9]{2}(\|(\{\{uc:\{\{PAGENAME\}\}\}\}|#))?\]\] " to "") |
||
Line 29: | Line 29: | ||
[[Category:Scripting Commands OFP 1.96|SAVEVAR]] | [[Category:Scripting Commands OFP 1.96|SAVEVAR]] | ||
[[Category:Scripting Commands OFP 1.46|SAVEVAR]] | [[Category:Scripting Commands OFP 1.46|SAVEVAR]] |
Revision as of 23:22, 24 March 2021
Description
- Description:
- Description needed
- Groups:
- Variables
Syntax
- Syntax:
- Syntax needed
- Parameters:
- varname: String
- Return Value:
- Return value needed
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
- Posted on January 28, 2009 - 22:56 (CET)
- Wolfrug
- 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);).