BIS fnc ambientPlanes: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|= Game version" to "|Game version=")
m (Some wiki formatting)
 
(29 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{RV|type=function


{{Function|Comments=
|game1= tkoh
____________________________________________________________________________________________
|version1= 1.00


| tkoh |Game name=
|game2= arma3
|version2= 0.50


|1.00|Game version=
|gr1= Ambient
____________________________________________________________________________________________


| ''N/A'' |DESCRIPTION=
|eff= global
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_ambientPlanes]]; --> |SYNTAX=
|descr= Creates ambient airplanes fly-by near airports around the [[player]]. It will automatically get classes from <sqf inline>configFile >> "CfgVehicles"</sqf> on all planes that have "ambientType" attribute &gt; 0.


|p1= |PARAMETER1=
|mp= Since this function uses [[player]] and its effect is [[Multiplayer Scripting#Locality|global]], this can only be used in singleplayer or executed locally on a player, usually the group leader.


| |RETURNVALUE=
|s1= [quantity, areaRadius, dirStep] call [[BIS_fnc_ambientPlanes]]
____________________________________________________________________________________________


|x1= <code></code> |=
|p1= quantity: [[Number]] - (Optional, default 5)
____________________________________________________________________________________________


| |SEEALSO=
|p2= areaRadius: [[Number]] - (Optional, default 10000) - area radius around airports where planes can spawn/fly


}}
|p3= dirStep: [[Number]] - (Optional, default 30)
 
|r1= [[Nothing]]


<h3 style="display:none">Notes</h3>
|x1= <sqf>[] call BIS_fnc_ambientPlanes;</sqf>
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
|x2= <sqf>[30, 3000] call BIS_fnc_ambientPlanes;</sqf>
</dl>


<h3 style="display:none">Bottom Section</h3>
|seealso= [[createUnit]] [[createVehicle]] [[BIS_fnc_spawnGroup]]
[[Category:Function Group: Ambient|{{uc:ambientPlanes}}]]
}}
[[Category:Functions|{{uc:ambientPlanes}}]]
[[Category:{{Name|tkoh}}: Functions|{{uc:ambientPlanes}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:ambientPlanes}}]]

Latest revision as of 14:33, 27 July 2022

Hover & click on the images for description

Description

Description:
Creates ambient airplanes fly-by near airports around the player. It will automatically get classes from configFile >> "CfgVehicles" on all planes that have "ambientType" attribute > 0.
Execution:
call
Multiplayer:
Since this function uses player and its effect is global, this can only be used in singleplayer or executed locally on a player, usually the group leader.
Groups:
Ambient

Syntax

Syntax:
[quantity, areaRadius, dirStep] call BIS_fnc_ambientPlanes
Parameters:
quantity: Number - (Optional, default 5)
areaRadius: Number - (Optional, default 10000) - area radius around airports where planes can spawn/fly
dirStep: Number - (Optional, default 30)
Return Value:
Nothing

Examples

Example 1:
[] call BIS_fnc_ambientPlanes;
Example 2:
[30, 3000] call BIS_fnc_ambientPlanes;

Additional Information

See also:
createUnit createVehicle BIS_fnc_spawnGroup

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