setMissionOptions: Difference between revisions
Jump to navigation
Jump to search
m (2.16 -> 2.18) |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 3: | Line 3: | ||
|game1= arma3 | |game1= arma3 | ||
|version1= 2.18 | |version1= 2.18 | ||
|eff= local | |eff= local | ||
|gr1= System | |||
|descr= Sets various mission options. The options are automatically reset between missions and are saved/restored with the save system. | |||
Providing an empty array will reset all options to defaults. | |||
|s1= [[setMissionOptions]] [ignoreNoDamage, ignoreFakeHeadHit] | |||
|p1= | |||
| | |p1= ignoreNoDamage: [[Boolean]] - (default [[false]]) [[true]] to filter out no change in damage from {{Link|Arma 3: Event Handlers#HandleDamage|HandleDamage}} calls | ||
| | |p2= ignoreFakeHeadHit: [[Boolean]] - (default [[false]]) [[true]] to filter out FakeHeadHit context from {{Link|Arma 3: Event Handlers#HandleDamage|HandleDamage}} calls | ||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
|x1= <sqf> | |x1= <sqf>setMissionOptions [true, true];</sqf> | ||
setMissionOptions [true, true]; | |||
</sqf> | |x2= <sqf>setMissionOptions []; // reset options to default</sqf> | ||
|seealso= [[getMissionOptions]] [[getResolution]] [[getAudioOptionVolumes]] [[getSubtitleOptions]] | |seealso= [[getMissionOptions]] [[getResolution]] [[getAudioOptionVolumes]] [[getSubtitleOptions]] | ||
}} | }} |
Revision as of 21:42, 16 February 2024
Description
- Description:
- Sets various mission options. The options are automatically reset between missions and are saved/restored with the save system. Providing an empty array will reset all options to defaults.
- Groups:
- System
Syntax
- Syntax:
- setMissionOptions [ignoreNoDamage, ignoreFakeHeadHit]
- Parameters:
- 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
- Return Value:
- Nothing
Examples
- Example 1:
- Example 2:
- setMissionOptions []; // reset options to default
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