BIS fnc fireSupport: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code>([^<]*)\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^<]*) *<\/code>" to "<code>$1$2$3</code>") |
Lou Montana (talk | contribs) m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *T([a-z ])" to "$1 - t$2") |
||
(11 intermediate revisions by the same user not shown) | |||
Line 10: | Line 10: | ||
|descr= Mortar/artillery fire support. | |descr= Mortar/artillery fire support. | ||
|s1=[arty,target,mag,radius,rounds,delay,conditionEnd,safezone] spawn [[BIS_fnc_fireSupport]] | |s1= [arty,target,mag,radius,rounds,delay,conditionEnd,safezone] spawn [[BIS_fnc_fireSupport]] | ||
|p1= arty: [[Object]] - | |p1= arty: [[Object]] - artillery unit. | ||
|p2= target: [[Position]] or [[Object]] or [[String]] - | |p2= target: [[Position]] or [[Object]] or [[String]] - target position, can be object/position 3D or marker name | ||
|p3= mag: [[String]] - | |p3= mag: [[String]] - magazine (if left empy, first magazine available will be used) | ||
|p4= radius: [[Number]] - | |p4= radius: [[Number]] - radius of target area in meters | ||
|p5= rounds: [[Number]] - | |p5= rounds: [[Number]] - number of rounds to be fired | ||
|p6= delay: [[Array]] or [[Number]] - | |p6= delay: [[Array]] or [[Number]] - delay between rounds: | ||
*[[Array]] | * [[Array]] | ||
**1: Min delay | ** 1: Min delay | ||
**2: Max delay | ** 2: Max delay | ||
*[[Number]] - Precise delay | * [[Number]] - Precise delay | ||
|p7= conditionEnd: [[Code]] - | |p7= conditionEnd: [[Code]] - condition to end bombardment before all rounds are fired | ||
|p8= safezone: [[Number]] - | |p8= safezone: [[Number]] - safezone radius - minimal distance from the target position where shells may be directed at | ||
|r1= [[Boolean]] - [[true]] if successful | |r1= [[Boolean]] - [[true]] if successful | ||
|x1= < | |x1= <sqf>[BIS_Mortar, [3600,3600,0], "", 100, 24, 10] spawn BIS_fnc_fireSupport;</sqf> | ||
|x2= <sqf>[BIS_Mortar,BIS_Player,"8Rnd_82mm_Mo_shells",100,24,10] spawn BIS_fnc_fireSupport;</sqf> | |||
|x3= < | |x2= <sqf>[BIS_Mortar, BIS_Player, "8Rnd_82mm_Mo_shells", 100, 24, 10] spawn BIS_fnc_fireSupport;</sqf> | ||
|x3= <sqf>[BIS_Mortar, "BIS_mrkTargetArea", "8Rnd_82mm_Mo_shells", 100, 24, 10, { BIS_Player distance BIS_EscapeZone < 100 }] spawn BIS_fnc_fireSupport;</sqf> | |||
|seealso= [[BIS_fnc_fireSupportCluster]] [[BIS_fnc_fire]] [[BIS_fnc_fireSupportVirtual]] | |seealso= [[BIS_fnc_fireSupportCluster]] [[BIS_fnc_fire]] [[BIS_fnc_fireSupportVirtual]] | ||
}} | }} |
Latest revision as of 15:50, 8 November 2023
Description
Syntax
- Syntax:
- [arty,target,mag,radius,rounds,delay,conditionEnd,safezone] spawn BIS_fnc_fireSupport
- Parameters:
- arty: Object - artillery unit.
- target: Position or Object or String - target position, can be object/position 3D or marker name
- mag: String - magazine (if left empy, first magazine available will be used)
- radius: Number - radius of target area in meters
- rounds: Number - number of rounds to be fired
- delay: Array or Number - delay between rounds:
- conditionEnd: Code - condition to end bombardment before all rounds are fired
- safezone: Number - safezone radius - minimal distance from the target position where shells may be directed at
- Return Value:
- Boolean - true if successful
Examples
- Example 1:
- Example 2:
- Example 3:
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