saveVar: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
[[Category:Scripting Commands|SAVEVAR]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|SAVEVAR]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|SAVEVAR]]
[[Category:Scripting Commands ArmA|SAVEVAR]]


| ofp |= Game name


<h2 style="color:#000066">'''saveVar ''varname'''''</h2>
|1.00|= Game version
____________________________________________________________________________________________


| Save variable value into the campaign space. This variable is available to all following missions in the campaign. |= Description
____________________________________________________________________________________________


'''Operand types:'''
| '''saveVar''' varname |= Syntax


'''varname:''' [[String]]
|p1= varname: [[String]] |= Parameter 1


'''Type of returned value:'''
| [[Nothing]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>saveVar "varOne"</pre> |= Example 1
____________________________________________________________________________________________


[[Nothing]]
|  |= See also


'''Description:'''
}}


Save '''variable''' value into the campaign space.
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


This variable is available to all following missions in the campaign.
<!-- Note Section END -->
</dl>


 
<h3 style="display:none">Bottom Section</h3>
'''Example:'''
[[Category:Scripting Commands|SAVEVAR]]
 
[[Category:Scripting Commands OFP 1.96|SAVEVAR]]
'''saveVar''' "varOne"
[[Category:Scripting Commands OFP 1.46|SAVEVAR]]
[[Category:Scripting Commands ArmA|SAVEVAR]]

Revision as of 23:59, 1 August 2006

Hover & click on the images for description

Description

Description:
Save variable value into the campaign space. This variable is available to all following missions in the campaign.
Groups:
Uncategorised

Syntax

Syntax:
saveVar varname
Parameters:
varname: String
Return Value:
Nothing

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

Bottom Section