saveStatus: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
(Add "saveVar" to related)
 
(54 intermediate revisions by 11 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands]]
{{RV|type=command
[[Category:Scripting Commands OFP 1.97]]
[[Category:Scripting Commands ArmA]]


back to [[Scripting_Reference#S|COMREF]]
|game1= ofp
|version1= 1.75


<h2 style="color:#000066">'''''object'' saveStatus ''name'''''</h2>
|game2= ofpe
|version2= 1.00


|game3= arma1
|version3= 1.00


'''Operand types:'''
|game4= arma2
|version4= 1.00


'''object:''' [[Object]]
|game5= arma2oa
|version5= 1.50


'''name:''' [[String]]
|game6= tkoh
|version6= 1.00


'''Type of returned value:'''
|game7= arma3
|version7= 0.50


[[Boolean]]
|gr1= Weapon Pool


'''Compatibility:'''
|gr2= Mission Information


Added in version '''1.75'''
|descr= Saves object's properties to [[Objects.sav]] file in campaign directory as entry name.


'''Description:'''
|s1= object [[saveStatus]] name


Saves '''object's''' properties to [[Objects.sav|objects.sav]] file in campaign directory as entry '''name'''.
|p1= object: [[Object]]


|p2= name: [[String]]


'''Example:'''
|r1= [[Boolean]] - [[true]] if successful, otherwise [[false]]


[[player]] '''saveStatus''' "playerstate"
|x1= <sqf>player saveStatus "playerstate";</sqf>
 
|seealso= [[loadStatus]] [[saveVar]]
}}

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