BIS fnc fireSupport: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision imported: BIS Functions update 1/7)
m (page filling)
Line 1: Line 1:
{{Function|= Comments
{{Function|= Comments
____________________________________________________________________________________________
____________________________________________________________________________________________
Line 8: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| <pre>/*
| Mortar/artillery fire support. |= Description
Author: Vaclav "Watty Watts" Oliva
____________________________________________________________________________________________
 
| [arty,target,mag,radius,rounds,delay,conditionEnd,safezone] call [[BIS_fnc_fireSupport]] |= Syntax


Description:
|p1= ary: [[Object]] - Artillery unit.|= Parameter 1
Mortar/artillery fire support


Parameters:
|p2= pos: [[Position]] or [[Object]] or [[Marker]] - Target position|= Parameter 2
Select 0 - OBJECT: Artillery unit
Select 1 - ARRAY or OBJECT or MARKER: Target position ([x,y,z] or Object or "Marker")
Select 2 - STRING: Magazine (if left empy, first magazine available will be used)
Select 3 - NUMBER: Radius
Select 4 - NUMBER: Number of rounds to be fired
Select 5 - NUMBER or ARRAY: Delay between rounds - use either #x for precise timing or [#x,#y] for setting min and max delay. 5 seconds is minimum.
Select 6 - (OPTIONAL) CODE: Condition to end bombardment before all rounds are fired
Select 7 - (OPTIONAL) NUMBER: Safezone radius - minimal distance from the target position where shells may be directed at


Returns:
|p3= mag: [[String]] - Magazine (if left empy, first magazine available will be used)|= Parameter 3
Boolean


Examples:
|p4= radius: [[Number]] - Radius of target area in meters|= Parameter 4
_barrage = [BIS_Mortar,[3600,3600,0],"",100,24,10] spawn BIS_fnc_fireSupport;
 
_barrage = [BIS_Mortar,BIS_Player,"8Rnd_82mm_Mo_shells",100,24,10] spawn BIS_fnc_fireSupport;
|p5= rouds: [[Number]] - Number of rounds to be fired|= Parameter 5
_barrage = [BIS_Mortar,"BIS_mrkTargetArea","8Rnd_82mm_Mo_shells",100,24,10,{BIS_Player distance BIS_EscapeZone < 100}] spawn BIS_fnc_fireSupport;
 
_barrage = [BIS_Mortar,BIS_Player,"8Rnd_82mm_Mo_shells",100,24,10,{dayTime > 20},50] spawn BIS_fnc_fireSupport;
|p6= delay: [[Array]] or [[Number]] - Delay between rounds.
_barrage = [BIS_Mortar,BIS_Victim,"8Rnd_82mm_Mo_shells",100,24,[5,10],{dayTime > 20},50] spawn BIS_fnc_fireSupport;
*[[Array]]
*/
**1: min delay
**2: max delay
*[[Number]] - Precise delay|= Parameter 6


// Params
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_fireSupport]]; --> |= Syntax
|p7= conditionEnd: [[Code]] - Condition to end bombardment before all rounds are fired|= Parameter 7
|p1= |= Parameter 1


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


|x1= <code></code> |=  
| [[Boolean]] - [[True]] if successful |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________


| |= See also
|x1= <code>[BIS_Mortar,[3600,3600,0],"",100,24,10] [[spawn]] [[BIS_fnc_fireSupport]];</code> |=
|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
}}
}}



Revision as of 17:18, 27 May 2018

Hover & click on the images for description

Description

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

Syntax

Syntax:
[arty,target,mag,radius,rounds,delay,conditionEnd,safezone] call BIS_fnc_fireSupport
Parameters:
ary: Object - Artillery unit.
pos: Position or Object or Marker - Target position
mag: String - Magazine (if left empy, first magazine available will be used)
radius: Number - Radius of target area in meters
rouds: 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_fireSupportClusterBIS_fnc_fireBIS_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

Notes

Bottom Section