Difference between revisions of "VN fnc artillery heli"
Jump to navigation
Jump to search
(Created page with "{{Function |v= 1.00 |author=Ethan Johnson |a= |e= |g1= artillery_functions |d= <pre>Spawns a helicopter with predetermined settings from the artillery module GUI</pre> |s...") |
|||
Line 11: | Line 11: | ||
|d= <pre>Spawns a helicopter with predetermined settings from the artillery module GUI</pre> | |d= <pre>Spawns a helicopter with predetermined settings from the artillery module GUI</pre> | ||
− | |s= [] call [[VN_fnc_artillery_heli]]; | + | |s= [_i,_planeCfg,_vehicle_class,_start_pos,_end_pos,_amount_index,_magazine,_unit,_illumination] call [[VN_fnc_artillery_heli]]; |
|p1n=_i | |p1n=_i |
Latest revision as of 19:39, 9 May 2022
← back to Functions | Introduced in S.O.G. Prairie Fire v1.00 by Ethan Johnson |
|
Description
Spawns a helicopter with predetermined settings from the artillery module GUI
Syntax
- Syntax
- [_i,_planeCfg,_vehicle_class,_start_pos,_end_pos,_amount_index,_magazine,_unit,_illumination] call VN_fnc_artillery_heli;
- Parameters
- _i: Number - Index of this heli's run
- _planeCfg: Config - Heli config
- _vehicle_class: String - Plane classname
- _start_pos: Array - Start position for the run
- _end_pos: Array - End position for the run
- _amount_index: Number - Number of total runs
- _magazine: Array - Array of magazines which will be fired from the vehicle
- _unit: Object - Unit that called the artillery
- _illumination: Boolean - Is the artillery run an illumination run
- Return value
- Boolean - Function reached the end
Examples
- Example 1
[0, configfile >> "cfgvehicles" >> "aircraft_class", "aircraft_class", [0,0,0], [100,100,0], 0, ["rockets"], player, false] call vn_fnc_artillery_heli