BIS fnc wpArtillery: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> " to "")
m (Text replacement - "= <code>([^<{]+)<\/code>" to "= <sqf>$1</sqf>")
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Function|Comments=
{{RV|type=function


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


|1.00|Game version=
|gr1= Waypoints


|gr1= Waypoints |GROUP1=
|descr= Let group members fire artillery barrage on waypoint position. Units must have magazine type.


| Let group members fire artillery barrage on waypoint position. Units must have magazine type. |Description=
|s1= [group, position, target, firedRounds, type] call [[BIS_fnc_wpArtillery]]


| [group, position, target, firedRounds, type] call [[BIS_fnc_wpArtillery]] |Syntax=
|p1= group: [[Group]]


|p1= group: [[Group]] |Parameter 1=
|p2= position: [[Array]] format [[Position]]


|p2= position: [[Position]] |Parameter 2=
|p3= target: [[Object]] - (Optional, default [[objNull]]) '''''unused parameter'''''


|p3= target: [[Object]] - (Optional, default [[objNull]]) '''''unused parameter''''' |Parameter 3=
|p4= firedRounds: [[Number]] - (Optional, default 100) number of fired rounds


|p4= firedRounds: [[Number]] - (Optional, default 100) number of fired rounds |Parameter 4=
|p5= type: [[String]] - (Optional, default "") magazine type to be used. If empty, first found magazine will be used


|p5= type: [[String]] - (Optional, default "") magazine type to be used. If empty, first found magazine will be used |Parameter 5=
|r1= [[Boolean]] - [[true]] when done


| [[Boolean]] - [[true]] when done |Return value=
|x1= <sqf>[group player, getMarkerPos "artilleryStrike", objNull, 30, "8Rnd_82mm_Mo_shells"] call BIS_fnc_wpArtillery;</sqf>


|x1= <code>[<nowiki/>[[group]] [[player]], [[getMarkerPos]] "artilleryStrike", [[objNull]], 30, "8Rnd_82mm_Mo_shells"] [[call]] [[BIS_fnc_wpArtillery]];</code> |Example 1=
|seealso= [[doArtilleryFire]] [[inRangeOfArtillery]]
 
| [[doArtilleryFire]], [[inRangeOfArtillery]] |See also=
}}
}}
<h3 style="display:none">Bottom Section</h3>

Latest revision as of 17:00, 13 July 2022

Hover & click on the images for description

Description

Description:
Let group members fire artillery barrage on waypoint position. Units must have magazine type.
Execution:
call
Groups:
Waypoints

Syntax

Syntax:
[group, position, target, firedRounds, type] call BIS_fnc_wpArtillery
Parameters:
group: Group
position: Array format Position
target: Object - (Optional, default objNull) unused parameter
firedRounds: Number - (Optional, default 100) number of fired rounds
type: String - (Optional, default "") magazine type to be used. If empty, first found magazine will be used
Return Value:
Boolean - true when done

Examples

Example 1:
[group player, getMarkerPos "artilleryStrike", objNull, 30, "8Rnd_82mm_Mo_shells"] call BIS_fnc_wpArtillery;

Additional Information

See also:
doArtilleryFire inRangeOfArtillery

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