{"name":"BIS_fnc_fireSupportVirtual","title":"BIS fnc fireSupportVirtual","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_fireSupportVirtual","revid":349184,"updated":"2023-11-08T14:50:39Z","groups":["Supports"],"status":"ok","games":{"arma3":"1.00"},"since":"arma3 1.00","arma3_since":"1.00","exec":"spawn","description":"Fires virtual mortar/artillery fire support.","syntaxes":[{"syntax":"[target, ammo, radius, rounds, delay, conditionEnd, safezone, alt, speed, sounds] spawn BIS_fnc_fireSupportVirtual","params":[{"name":"target","type":"Position, Object or String","description":"target position, can be object, position or marker name","type_expr":"Position | Object | String"},{"name":"ammo","type":"String","optional":true,"default":"\"Sh_82mm_AMOS\"","description":"ammunition to be used (if left empty, `Sh_82mm_AMOS` ammunition will be used)","type_expr":"String","text":"ammo: String - (Optional, default \"Sh_82mm_AMOS\") ammunition to be used (if left empty, `Sh_82mm_AMOS` ammunition will be used)"},{"name":"radius","type":"Number","optional":true,"default":"100","description":"radius of target area in meters","type_expr":"Number","text":"radius: Number - (Optional, default 100) radius of target area in meters"},{"name":"rounds","type":"Number","optional":true,"default":"10","description":"number of rounds to be fired","type_expr":"Number","text":"rounds: Number - (Optional, default 10) number of rounds to be fired"},{"name":"delay","type":"Array or Number","optional":true,"default":"10","description":"delay between rounds\n\n- Array [min, max]:\n  - min: Number - min delay\n  - max: Number - max delay\n- Number - Precise delay","type_expr":"Array | Number","text":"delay: Array or Number - (Optional, default 10) delay between rounds\n\n- Array [min, max]:\n  - min: Number - min delay\n  - max: Number - max delay\n- Number - Precise delay"},{"name":"conditionEnd","type":"Code","optional":true,"default":"`{ false }`","description":"condition to end bombardment before all rounds are fired","type_expr":"Code","text":"conditionEnd: Code - (Optional, default `{ false }`) condition to end bombardment before all rounds are fired"},{"name":"safezone","type":"Number","optional":true,"default":"0","description":"safezone radius - minimal distance from the target position where shells may be directed at","type_expr":"Number","text":"safezone: Number - (Optional, default 0) safezone radius - minimal distance from the target position where shells may be directed at"},{"name":"alt","type":"Number","optional":true,"default":"250","description":"altitude where the shell will be created","type_expr":"Number","text":"alt: Number - (Optional, default 250) altitude where the shell will be created"},{"name":"speed","type":"Number","optional":true,"default":"150","description":"descending velocity, in m/s. If you use flare as ammo, set it to lower value (1-5) to let it fall down slowly","type_expr":"Number","text":"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"},{"name":"sounds","type":"Array of Strings","optional":true,"default":"[\"\"]","description":"sounds to be played on the incoming shell","type_expr":"Array<String>","text":"sounds: Array of Strings - (Optional, default [\"\"]) sounds to be played on the incoming shell"}],"returns":{"type":"Boolean","type_expr":"Boolean","description":"true if successful"}}],"examples":[{"code":["[BIS_Player, \"Sh_82mm_AMOS\", 100, 24, 10] spawn BIS_fnc_fireSupportVirtual;"]},{"code":["[[3600, 3600, 0], nil, 100, 24, 10] spawn BIS_fnc_fireSupportVirtual;"]},{"code":["[BIS_Player, nil, 100, 24, 10, {dayTime > 20}, 50] spawn BIS_fnc_fireSupportVirtual;"]}],"see_also":["BIS_fnc_fireSupport","BIS_fnc_fireSupportCluster","BIS_fnc_fire"]}