saveStatus: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(add. classification)
(Add "saveVar" to related)
 
(41 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| ofpr |= Game name
|game1= ofp
|version1= 1.75


|1.75|= Game version
|game2= ofpe
____________________________________________________________________________________________
|version2= 1.00


| Saves object's properties to [[Objects.sav]] file in campaign directory as entry name. |= Description
|game3= arma1
____________________________________________________________________________________________
|version3= 1.00


| object '''saveStatus''' name |= Syntax
|game4= arma2
|version4= 1.00


|p1= object: [[Object]] |= Parameter 1
|game5= arma2oa
|p2= name: [[String]] |= Parameter 2
|version5= 1.50


| [[Boolean]] |= Return value
|game6= tkoh
____________________________________________________________________________________________
|version6= 1.00
 
|x1= <code>[[player]] saveStatus "playerstate"</code> |= Example 1
____________________________________________________________________________________________


| [[loadStatus]] |= See also
|game7= arma3
|version7= 0.50


}}
|gr1= Weapon Pool
 
|gr2= Mission Information
 
|descr= Saves object's properties to [[Objects.sav]] file in campaign directory as entry name.
 
|s1= object [[saveStatus]] name
 
|p1= object: [[Object]]
 
|p2= name: [[String]]


<h3 style="display:none">Notes</h3>
|r1= [[Boolean]] - [[true]] if successful, otherwise [[false]]
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
|x1= <sqf>player saveStatus "playerstate";</sqf>
</dl>


<h3 style="display:none">Bottom Section</h3>
|seealso= [[loadStatus]] [[saveVar]]
[[Category:Scripting Commands|SAVESTATUS]]
}}
[[Category:Scripting Commands OFP 1.96|SAVESTATUS]]
[[Category:Scripting Commands ArmA|SAVESTATUS]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands VBS2|{{uc:{{PAGENAME}}}}]]

Latest revision as of 01:57, 7 February 2023

Hover & click on the images for description

Description

Description:
Saves object's properties to Objects.sav file in campaign directory as entry name.
Groups:
Weapon PoolMission Information

Syntax

Syntax:
object saveStatus name
Parameters:
object: Object
name: String
Return Value:
Boolean - true if successful, otherwise false

Examples

Example 1:
player saveStatus "playerstate";

Additional Information

See also:
loadStatus saveVar

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