setMissionOptions: Difference between revisions
Jump to navigation
Jump to search
BrettMayson (talk | contribs) mNo edit summary |
(MissionOptions to HashMap) |
||
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: | |||
* 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 | |||
Providing a empty HashMap will reset all options to defaults. | |||
| | |s1= [[setMissionOptions]] options | ||
| | |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]];</sqf> | ||
|x2= <sqf>setMissionOptions | |x2= <sqf>setMissionOptions createHashMap; // reset options to default</sqf> | ||
|seealso= [[getMissionOptions]] [[getResolution]] [[getAudioOptionVolumes]] [[getSubtitleOptions]] | |seealso= [[getMissionOptions]] [[getResolution]] [[getAudioOptionVolumes]] [[getSubtitleOptions]] | ||
}} | }} |
Revision as of 16:45, 6 March 2024
Description
- Description:
- Sets various mission options. The options are automatically reset between missions and are saved/restored with the save system.
Available Options:- IgnoreNoDamage: Boolean - (default false) true to filter out no change in damage from HandleDamage calls
- IgnoreFakeHeadHit: Boolean - (default false) true to filter out FakeHeadHit context from HandleDamage calls
- Groups:
- System
Syntax
- Syntax:
- setMissionOptions options
- Parameters:
- options: HashMap - A HashMap containing all the options to be changed
- Return Value:
- Nothing
Examples
- Example 1:
- Example 2:
Additional Information
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