BIS fnc fireSupportVirtual: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "[[daytime" to "[[dayTime") |
Lou Montana (talk | contribs) m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *T([a-z ])" to "$1 - t$2") |
||
(17 intermediate revisions by the same user not shown) | |||
Line 8: | Line 8: | ||
|descr= Fires virtual mortar/artillery fire support. | |descr= Fires virtual mortar/artillery fire support. | ||
|s1=[target, | |s1= [target, ammo, radius, rounds, delay, conditionEnd, safezone, alt, speed, sounds] spawn [[BIS_fnc_fireSupportVirtual]] | ||
|p1= target: [[Position]], [[Object]] or [[String]] - | |p1= target: [[Position]], [[Object]] or [[String]] - target position, can be object, position or marker name | ||
|p2= | |p2= ammo: [[String]] - (Optional, default "Sh_82mm_AMOS") ammunition to be used (if left empty, {{hl|Sh_82mm_AMOS}} ammunition 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 | ||
Line 24: | Line 24: | ||
* [[Number]] - Precise delay | * [[Number]] - Precise delay | ||
|p6= conditionEnd: [[Code]] - (Optional, default { | |p6= conditionEnd: [[Code]] - (Optional, default <sqf inline>{ false }</sqf>) condition to end bombardment before all rounds are fired | ||
|p7= safezone: [[Number]] - (Optional, default 0) | |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) | |p8= alt: [[Number]] - (Optional, default 250) altitude where the shell will be created | ||
|p9= speed: [[Number]] - (Optional, default 150) | |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 | |p10= sounds: [[Array]] of [[String]]s - (Optional, default [""]) sounds to be played on the incoming shell | ||
|r1=[[Boolean]] - [[true]] if successful | |r1= [[Boolean]] - [[true]] if successful | ||
|x1= < | |x1= <sqf>[BIS_Player, "Sh_82mm_AMOS", 100, 24, 10] spawn BIS_fnc_fireSupportVirtual;</sqf> | ||
|x2= < | |x2= <sqf>[[3600, 3600, 0], nil, 100, 24, 10] spawn BIS_fnc_fireSupportVirtual;</sqf> | ||
|x3= < | |x3= <sqf>[BIS_Player, nil, 100, 24, 10, {dayTime > 20}, 50] spawn BIS_fnc_fireSupportVirtual;</sqf> | ||
|exec= spawn | |exec= spawn | ||
|seealso= [[BIS_fnc_fireSupport]] | |seealso= [[BIS_fnc_fireSupport]] [[BIS_fnc_fireSupportCluster]] [[BIS_fnc_fire]] [[BIS_fnc_fireSupport]] | ||
}} | }} |
Latest revision as of 15:50, 8 November 2023
Description
Syntax
- Syntax:
- [target, ammo, 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
- ammo: String - (Optional, default "Sh_82mm_AMOS") ammunition to be used (if left empty, Sh_82mm_AMOS ammunition 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 [""]) sounds to be played on the incoming shell
- 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