BIS fnc fireSupport: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (page filling)
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *T([a-z ])" to "$1 - t$2")
 
(46 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Function|= Comments
{{RV|type=function
____________________________________________________________________________________________


| arma3 |= Game name
|game1= arma3
|version1= 1.00


|1.00|= Game version
|gr1= Supports
____________________________________________________________________________________________


| Mortar/artillery fire support. |= Description
|gr2= Combat
____________________________________________________________________________________________


| [arty,target,mag,radius,rounds,delay,conditionEnd,safezone] call [[BIS_fnc_fireSupport]] |= Syntax
|descr= Mortar/artillery fire support.


|p1= ary: [[Object]] - Artillery unit.|= Parameter 1
|s1= [arty,target,mag,radius,rounds,delay,conditionEnd,safezone] spawn [[BIS_fnc_fireSupport]]


|p2= pos: [[Position]] or [[Object]] or [[Marker]] - Target position|= Parameter 2
|p1= arty: [[Object]] - artillery unit.


|p3= mag: [[String]] - Magazine (if left empy, first magazine available will be used)|= Parameter 3
|p2= target: [[Position]] or [[Object]] or [[String]] - target position, can be object/position 3D or marker name


|p4= radius: [[Number]] - Radius of target area in meters|= Parameter 4
|p3= mag: [[String]] - magazine (if left empy, first magazine available will be used)


|p5= rouds: [[Number]] - Number of rounds to be fired|= Parameter 5
|p4= radius: [[Number]] - radius of target area in meters


|p6= delay: [[Array]] or [[Number]] - Delay between rounds.
|p5= rounds: [[Number]] - number of rounds to be fired
*[[Array]]
**1: min delay
**2: max delay
*[[Number]] - Precise delay|= Parameter 6


|p6= delay: [[Array]] or [[Number]] - delay between rounds:
* [[Array]]
** 1: Min delay
** 2: Max delay
* [[Number]] - Precise delay


|p7= conditionEnd: [[Code]] - Condition to end bombardment before all rounds are fired|= Parameter 7
|p7= conditionEnd: [[Code]] - condition to end bombardment before all rounds are fired


|p8= safezone: [[Number]] - Safezone radius - minimal distance from the target position where shells may be directed at|= Parameter 8
|p8= safezone: [[Number]] - safezone radius - minimal distance from the target position where shells may be directed at


| [[Boolean]] - [[True]] if successful |= Return value
|r1= [[Boolean]] - [[true]] if successful
____________________________________________________________________________________________


|x1= <code>[BIS_Mortar,[3600,3600,0],"",100,24,10] [[spawn]] [[BIS_fnc_fireSupport]];</code> |=
|x1= <sqf>[BIS_Mortar, [3600,3600,0], "", 100, 24, 10] spawn BIS_fnc_fireSupport;</sqf>
|x2= <code>[BIS_Mortar,BIS_Player,"8Rnd_82mm_Mo_shells",100,24,10] [[spawn]] [[BIS_fnc_fireSupport]];</code> |=
|x3= <code>[BIS_Mortar,"BIS_mrkTargetArea","8Rnd_82mm_Mo_shells",100,24,10,{BIS_Player distance BIS_EscapeZone < 100}] [[spawn]] [[BIS_fnc_fireSupport]];</code> |=
______________


| [[BIS_fnc_fireSupportCluster]], [[BIS_fnc_fire]], [[BIS_fnc_fireSupportVirtual]]  |= See also
|x2= <sqf>[BIS_Mortar, BIS_Player, "8Rnd_82mm_Mo_shells", 100, 24, 10] spawn BIS_fnc_fireSupport;</sqf>
}}


<h3 style="display:none">Notes</h3>
|x3= <sqf>[BIS_Mortar, "BIS_mrkTargetArea", "8Rnd_82mm_Mo_shells", 100, 24, 10, { BIS_Player distance BIS_EscapeZone < 100 }] spawn BIS_fnc_fireSupport;</sqf>
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
|seealso= [[BIS_fnc_fireSupportCluster]] [[BIS_fnc_fire]] [[BIS_fnc_fireSupportVirtual]]
</dl>
}}
 
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Combat|{{uc:fireSupport}}]]
[[Category:Functions|{{uc:fireSupport}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:fireSupport}}]]

Latest revision as of 15:50, 8 November 2023

Hover & click on the images for description

Description

Description:
Mortar/artillery fire support.
Execution:
call
Groups:
SupportsCombat

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:
[BIS_Mortar, [3600,3600,0], "", 100, 24, 10] spawn BIS_fnc_fireSupport;
Example 2:
[BIS_Mortar, BIS_Player, "8Rnd_82mm_Mo_shells", 100, 24, 10] spawn BIS_fnc_fireSupport;
Example 3:
[BIS_Mortar, "BIS_mrkTargetArea", "8Rnd_82mm_Mo_shells", 100, 24, 10, { BIS_Player distance BIS_EscapeZone < 100 }] spawn BIS_fnc_fireSupport;

Additional Information

See also:
BIS_fnc_fireSupportCluster BIS_fnc_fire BIS_fnc_fireSupportVirtual

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