BIS fnc ambientPlanes: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " {{Function|Comments=" to "{{Function|Comments=")
(Page filling)
Line 5: Line 5:


|1.00|Game version=
|1.00|Game version=
|eff= global |MP Effect=
____________________________________________________________________________________________
____________________________________________________________________________________________


| ''N/A''<br>{{placeholder}} |DESCRIPTION=
| Creates ambient airplanes fly-by near airports around the [[player]]. It will automatically get classes from {{Inline code|[[configFile]] >> "CfgVehicles"}} on all planes that have "ambientType" attribute &gt; 0. |DESCRIPTION=
 
|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. |Multiplayer=
____________________________________________________________________________________________
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_ambientPlanes]]; --> |SYNTAX=
| [quantity, areaRadius, dirStep] call [[BIS_fnc_ambientPlanes]] |SYNTAX=
 
|p1= quantity: [[Number]] - (Optional, default 5) |PARAMETER1=
 
|p2= areaRadius: [[Number]] - (Optional, default 10000) - area radius around airports where planes can spawn/fly |PARAMETER2=


|p1= |PARAMETER1=
|p3= dirStep: [[Number]] - (Optional, default 30) |PARAMETER3=


| |RETURNVALUE=
| [[Nothing]] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code></code> |EXAMPLE1=
|x1= <code>[] [[call]] [[BIS_fnc_ambientPlanes]];</code> |EXAMPLE1=
 
|x2= <code>[30, 3000] [[call]] [[BIS_fnc_ambientPlanes]];</code> |EXAMPLE2=
____________________________________________________________________________________________
____________________________________________________________________________________________


| |SEEALSO=
| [[createUnit]] [[createVehicle]] [[BIS_fnc_spawnGroup]] |SEEALSO=
 
}}
}}


Line 33: Line 42:
<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Ambient|{{uc:ambientPlanes}}]]
[[Category:Function Group: Ambient|{{uc:ambientPlanes}}]]
[[Category:Functions|{{uc:ambientPlanes}}]]
[[Category:{{Name|tkoh}}: Functions|{{uc:ambientPlanes}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:ambientPlanes}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:ambientPlanes}}]]

Revision as of 12:17, 26 June 2020

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:
Uncategorised

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

Notes

Bottom Section