saveStatus: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
(Add "saveVar" to related)
 
(49 intermediate revisions by 11 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
|version5= 1.50


|p2= name: [[String]] |= Parameter 2
|game6= tkoh
|version6= 1.00


| [[Boolean]] |= Return value
|game7= arma3
____________________________________________________________________________________________
|version7= 0.50
 
|x1= <pre>[[player]] saveStatus "playerstate"</pre> |= Example 1
____________________________________________________________________________________________


| |= See also
|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]]

Latest revision as of 00: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