loadStatus: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
 
(57 intermediate revisions by 15 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#L|COMREF]]
|game1= ofp
|version1= 1.75


<h2 style="color:#000066">'''''object'' loadStatus ''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= Loads object's properties from [[Objects.sav]] file in campaign directory (from entry name).


'''Description:'''
|mp= This command does not work in Multiplayer.


Loads '''object's''' properties from [[objects.sav]] file in campaign directory (from entry '''name''').
|s1= object [[loadStatus]] entryName


|p1= object: [[Object]]


'''Example:'''
|p2= entryName: [[String]]


[[player]] '''loadStatus''' "playerState"
|r1= [[Boolean]] - [[true]] if successfull, otherwise [[false]]
 
|x1= <sqf>_ok = player loadStatus "playerState";</sqf>
 
|seealso= [[saveStatus]]
}}

Latest revision as of 10:24, 13 May 2022

Hover & click on the images for description

Description

Description:
Loads object's properties from Objects.sav file in campaign directory (from entry name).
Multiplayer:
This command does not work in Multiplayer.
Groups:
Weapon PoolMission Information

Syntax

Syntax:
object loadStatus entryName
Parameters:
object: Object
entryName: String
Return Value:
Boolean - true if successfull, otherwise false

Examples

Example 1:
_ok = player loadStatus "playerState";

Additional Information

See also:
saveStatus

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