deleteStatus: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *N([a-z ])" to "$1 - n$2")
 
(43 intermediate revisions by 11 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands|DELETESTATUS]]
{{RV|type=command
[[Category:Scripting Commands OFP 1.96|DELETESTATUS]]
[[Category:Scripting Commands ArmA|DELETESTATUS]]


|game1= ofp
|version1= 1.75


<h2 style="color:#000066">'''deleteStatus ''statusName'''''</h2>
|game2= ofpe
|version2= 1.00


|game3= arma1
|version3= 1.00


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


'''statusName:''' [[String]]
|game5= arma2oa
|version5= 1.50


'''Type of returned value:'''
|game6= tkoh
|version6= 1.00


[[Boolean]]
|game7= arma3
|version7= 0.50


'''Compatibility:'''
|eff= global


Added in version '''1.75'''
|gr1= Object Manipulation


'''Description:'''
|descr= Deletes a status created with [[saveStatus]] from the campaign's progress file.


Delete status created by [[saveStatus]] from campaign progress file.
|s1= [[deleteStatus]] statusName


|p1= statusName: [[String]] - name of the saved status


'''Example:'''
|r1= [[Boolean]] - [[true]] if the status was deleted successfully, [[false]] if not


'''deleteStatus''' "playerState"
|x1= <sqf>_deleted = deleteStatus "playerStatus";</sqf>
 
|seealso= [[saveStatus]] [[deleteIdentity]] [[saveIdentity]]
}}

Latest revision as of 16:39, 8 November 2023

Hover & click on the images for description

Description

Description:
Deletes a status created with saveStatus from the campaign's progress file.
Groups:
Object Manipulation

Syntax

Syntax:
deleteStatus statusName
Parameters:
statusName: String - name of the saved status
Return Value:
Boolean - true if the status was deleted successfully, false if not

Examples

Example 1:
_deleted = deleteStatus "playerStatus";

Additional Information

See also:
saveStatus deleteIdentity saveIdentity

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