BIS fnc fireSupportVirtual: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl>" to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
| arma3 | | arma3 | ||
|1.00 | |1.00 | ||
|gr1 = Supports | |gr1 = Supports | ||
| Fires virtual mortar/artillery fire support. | | Fires virtual mortar/artillery fire support. | ||
| [target, mag, radius, rounds, delay, conditionEnd, safezone, alt, speed, sounds] spawn [[BIS_fnc_fireSupportVirtual]] | | [target, mag, radius, rounds, delay, conditionEnd, safezone, alt, speed, sounds] spawn [[BIS_fnc_fireSupportVirtual]] | ||
|p1= target: [[Position]], [[Object]] or [[String]] - Target position, can be object, position or marker name | |p1= target: [[Position]], [[Object]] or [[String]] - Target position, can be object, position or marker name | ||
|p2= mag: [[String]] - (Optional, default "Sh_82mm_AMOS") magazine (if left empty, first available magazine will be used) | |p2= mag: [[String]] - (Optional, default "Sh_82mm_AMOS") magazine (if left empty, first available magazine will be used) | ||
|p3= radius: [[Number]] - (Optional, default 100) radius of target area in meters | |p3= radius: [[Number]] - (Optional, default 100) radius of target area in meters | ||
|p4= rounds: [[Number]] - (Optional, default 10) number of rounds to be fired | |p4= rounds: [[Number]] - (Optional, default 10) number of rounds to be fired | ||
|p5= delay: [[Array]] or [[Number]] - (Optional, default 10) delay between rounds | |p5= delay: [[Array]] or [[Number]] - (Optional, default 10) delay between rounds | ||
Line 23: | Line 23: | ||
** min: [[Number]] - min delay | ** min: [[Number]] - min delay | ||
** max: [[Number]] - max delay | ** max: [[Number]] - max delay | ||
* [[Number]] - Precise delay | * [[Number]] - Precise delay | ||
|p6= conditionEnd: [[Code]] - (Optional, default {{Inline code|{ [[false]] }<nowiki/>}}) Condition to end bombardment before all rounds are fired | |p6= conditionEnd: [[Code]] - (Optional, default {{Inline code|{ [[false]] }<nowiki/>}}) Condition to end bombardment before all rounds are fired | ||
|p7= safezone: [[Number]] - (Optional, default 0) Safezone radius - minimal distance from the target position where shells may be directed at | |p7= safezone: [[Number]] - (Optional, default 0) Safezone radius - minimal distance from the target position where shells may be directed at | ||
|p8= alt: [[Number]] - (Optional, default 250) Altitude where the shell will be created | |p8= alt: [[Number]] - (Optional, default 250) Altitude where the shell will be created | ||
|p9= speed: [[Number]] - (Optional, default 150) Descending velocity, in m/s. Default is 150, if you use flare as ammo, set it to lower value (1-5) to let it fall down slowly | |p9= speed: [[Number]] - (Optional, default 150) Descending velocity, in m/s. Default is 150, if you use flare as ammo, set it to lower value (1-5) to let it fall down slowly | ||
|p10= sounds: [[Array]] of [[String|strings]] - (Optional, default [""]) Ssounds to be played on the incoming shell |Parameter 10= | |p10= sounds: [[Array]] of [[String|strings]] - (Optional, default [""]) Ssounds to be played on the incoming shell |Parameter 10= | ||
| [[Boolean]] - [[true]] if successful | | [[Boolean]] - [[true]] if successful | ||
|x1= <code>[BIS_Player, "Sh_82mm_AMOS", 100, 24, 10] [[spawn]] [[BIS_fnc_fireSupportVirtual]];</code> | |x1= <code>[BIS_Player, "Sh_82mm_AMOS", 100, 24, 10] [[spawn]] [[BIS_fnc_fireSupportVirtual]];</code> | ||
|x2= <code><nowiki>[</nowiki>[3600, 3600, 0], [[nil]], 100, 24, 10] [[spawn]] [[BIS_fnc_fireSupportVirtual]];</code> | |x2= <code><nowiki>[</nowiki>[3600, 3600, 0], [[nil]], 100, 24, 10] [[spawn]] [[BIS_fnc_fireSupportVirtual]];</code> | ||
|x3= <code>[BIS_Player, [[nil]], 100, 24, 10, {[[daytime]] > 20}, 50] [[spawn]] [[BIS_fnc_fireSupportVirtual]];</code> | |x3= <code>[BIS_Player, [[nil]], 100, 24, 10, {[[daytime]] > 20}, 50] [[spawn]] [[BIS_fnc_fireSupportVirtual]];</code> | ||
|exec= spawn |Execution= | |exec= spawn |Execution= | ||
| [[BIS_fnc_fireSupport]], [[BIS_fnc_fireSupportCluster]], [[BIS_fnc_fire]], [[BIS_fnc_fireSupport]] | | [[BIS_fnc_fireSupport]], [[BIS_fnc_fireSupportCluster]], [[BIS_fnc_fire]], [[BIS_fnc_fireSupport]] | ||
}} | }} | ||
<h3 style="display:none">Bottom Section</h3> | <h3 style="display:none">Bottom Section</h3> |
Revision as of 00:00, 18 January 2021
Description
Syntax
- Syntax:
- [target, mag, radius, rounds, delay, conditionEnd, safezone, alt, speed, sounds] spawn BIS_fnc_fireSupportVirtual
- Parameters:
- target: Position, Object or String - Target position, can be object, position or marker name
- mag: String - (Optional, default "Sh_82mm_AMOS") magazine (if left empty, first available magazine will be used)
- radius: Number - (Optional, default 100) radius of target area in meters
- rounds: Number - (Optional, default 10) number of rounds to be fired
- delay: Array or Number - (Optional, default 10) delay between rounds
- conditionEnd: Code - (Optional, default
{ false }
) Condition to end bombardment before all rounds are fired - safezone: Number - (Optional, default 0) Safezone radius - minimal distance from the target position where shells may be directed at
- alt: Number - (Optional, default 250) Altitude where the shell will be created
- speed: Number - (Optional, default 150) Descending velocity, in m/s. Default is 150, if you use flare as ammo, set it to lower value (1-5) to let it fall down slowly
- sounds: Array of strings - (Optional, default [""]) Ssounds to be played on the incoming shell
- Return Value:
- Boolean - true if successful
Examples
- Example 1:
[BIS_Player, "Sh_82mm_AMOS", 100, 24, 10] spawn BIS_fnc_fireSupportVirtual;
- Example 2:
[[3600, 3600, 0], nil, 100, 24, 10] spawn BIS_fnc_fireSupportVirtual;
- Example 3:
[BIS_Player, nil, 100, 24, 10, {daytime > 20}, 50] spawn BIS_fnc_fireSupportVirtual;
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