setMissionOptions: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "↵|version1= 2.18↵↵|branch= dev↵" to " |version1= 2.18 ")
 
(4 intermediate revisions by 3 users not shown)
Line 8: Line 8:
|gr1= System
|gr1= System


|descr= Sets various mission options. The options are automatically reset between missions and are saved/restored with the save system.
|descr= Sets various mission options. The options are automatically reset between missions and are saved/restored with the save system.<br>
Available Options:


Providing an empty array will reset all options to defaults.
* IgnoreNoDamage: [[Boolean]] - (default [[false]]) [[true]] to filter out no change in damage from {{Link|Arma 3: Event Handlers#HandleDamage|HandleDamage}} calls
* IgnoreFakeHeadHit: [[Boolean]] - (default [[false]]) [[true]] to filter out FakeHeadHit context from {{Link|Arma 3: Event Handlers#HandleDamage|HandleDamage}} calls
* IgnoreUpsideDownDamage: [[Boolean]] - (default [[false]]) [[true]] to ignore some minor upside down damage accumulation for a helicopter


|s1= [[setMissionOptions]] [ignoreNoDamage, ignoreFakeHeadHit]
Providing a empty HashMap will reset all options to defaults.


|p1= ignoreNoDamage: [[Boolean]] - (default [[false]]) [[true]] to filter out no change in damage from {{Link|Arma 3: Event Handlers#HandleDamage|HandleDamage}} calls
|s1= [[setMissionOptions]] options


|p2= ignoreFakeHeadHit: [[Boolean]] - (default [[false]]) [[true]] to filter out FakeHeadHit context from {{Link|Arma 3: Event Handlers#HandleDamage|HandleDamage}} calls
|p1= options: [[HashMap]] - a HashMap containing all the options to be changed


|r1= [[Nothing]]
|r1= [[Nothing]]


|x1= <sqf>setMissionOptions [true, true];</sqf>
|x1= <sqf>setMissionOptions createHashMapFromArray [["IgnoreNoDamage", true], ["IgnoreFakeHeadHit", true], ["IgnoreUpsideDownDamage", true]];</sqf>


|x2= <sqf>setMissionOptions []; // reset options to default</sqf>
|x2= <sqf>setMissionOptions createHashMap; // reset options to default</sqf>


|seealso= [[getMissionOptions]] [[getResolution]] [[getAudioOptionVolumes]] [[getSubtitleOptions]]
|seealso= [[getMissionOptions]] [[getResolution]] [[getAudioOptionVolumes]] [[getSubtitleOptions]]
}}
}}

Latest revision as of 16:08, 8 October 2024

Hover & click on the images for description

Description

Description:
Sets various mission options. The options are automatically reset between missions and are saved/restored with the save system.
Available Options: Providing a empty HashMap will reset all options to defaults.
Groups:
System

Syntax

Syntax:
setMissionOptions options
Parameters:
options: HashMap - a HashMap containing all the options to be changed
Return Value:
Nothing

Examples

Example 1:
setMissionOptions createHashMapFromArray [["IgnoreNoDamage", true], ["IgnoreFakeHeadHit", true], ["IgnoreUpsideDownDamage", true]];
Example 2:
setMissionOptions createHashMap; // reset options to default

Additional Information

See also:
getMissionOptions getResolution getAudioOptionVolumes getSubtitleOptions

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