saveStatus: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}")
(Add "saveVar" to related)
 
(21 intermediate revisions by 2 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


|gr1= Weapon Pool |GROUP1=
|game3= arma1
|gr2= Mission Information |GROUP2=
|version3= 1.00
____________________________________________________________________________________________


| Saves object's properties to [[Objects.sav]] file in campaign directory as entry name. |DESCRIPTION=
|game4= arma2
____________________________________________________________________________________________
|version4= 1.00


| object '''saveStatus''' name |SYNTAX=
|game5= arma2oa
|version5= 1.50


|p1= object: [[Object]] |PARAMETER1=
|game6= tkoh
|p2= name: [[String]] |PARAMETER2=
|version6= 1.00


| [[Boolean]] |RETURNVALUE=
|game7= arma3
____________________________________________________________________________________________
|version7= 0.50
 
|x1= <code>[[player]] saveStatus "playerstate"</code> |EXAMPLE1=
____________________________________________________________________________________________


| [[loadStatus]] |SEEALSO=
|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]]


<h3 style="display:none">Notes</h3>
|p2= name: [[String]]
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
|r1= [[Boolean]] - [[true]] if successful, otherwise [[false]]
</dl>


<h3 style="display:none">Bottom Section</h3>
|x1= <sqf>player saveStatus "playerstate";</sqf>


[[Category:Scripting Commands|SAVESTATUS]]
|seealso= [[loadStatus]] [[saveVar]]
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
}}
[[Category:Scripting Commands OFP 1.96|SAVESTATUS]]
{{GameCategory|arma1|Scripting Commands}}
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}

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