setMissionOptions: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Some wiki formatting) |
Lou Montana (talk | contribs) m (Text replacement - "↵|version1= 2.18↵↵|branch= dev↵" to " |version1= 2.18 ") |
||
(One intermediate revision by one other user not shown) | |||
Line 3: | Line 3: | ||
|game1= arma3 | |game1= arma3 | ||
|version1= 2.18 | |version1= 2.18 | ||
|eff= local | |eff= local | ||
Line 15: | Line 13: | ||
* IgnoreNoDamage: [[Boolean]] - (default [[false]]) [[true]] to filter out no change in damage from {{Link|Arma 3: Event Handlers#HandleDamage|HandleDamage}} calls | * 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 | * 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 | |||
Providing a empty HashMap will reset all options to defaults. | Providing a empty HashMap will reset all options to defaults. | ||
Line 24: | Line 23: | ||
|r1= [[Nothing]] | |r1= [[Nothing]] | ||
|x1= <sqf>setMissionOptions createHashMapFromArray [["IgnoreNoDamage", true], ["IgnoreFakeHeadHit", true]];</sqf> | |x1= <sqf>setMissionOptions createHashMapFromArray [["IgnoreNoDamage", true], ["IgnoreFakeHeadHit", true], ["IgnoreUpsideDownDamage", true]];</sqf> | ||
|x2= <sqf>setMissionOptions createHashMap; // reset options to default</sqf> | |x2= <sqf>setMissionOptions createHashMap; // reset options to default</sqf> |
Latest revision as of 16:08, 8 October 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
- IgnoreUpsideDownDamage: Boolean - (default false) true to ignore some minor upside down damage accumulation for a helicopter
- 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:
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