BIS fnc ambientPlanes: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category\:Function Group\: Ambient(\|\{\{[a-zA-Z0-9_:]+\}\})?\]\] " to "")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Function|Comments=
{{Function|Comments=
____________________________________________________________________________________________


| tkoh |Game name=
| tkoh |Game name=
Line 9: Line 8:


|eff= global |MP Effect=
|eff= global |MP Effect=
____________________________________________________________________________________________


| 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 > 0. |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 > 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=
|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=
____________________________________________________________________________________________


| [quantity, areaRadius, dirStep] call [[BIS_fnc_ambientPlanes]] |SYNTAX=
| [quantity, areaRadius, dirStep] call [[BIS_fnc_ambientPlanes]] |SYNTAX=
Line 25: Line 22:


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


|x1= <code>[] [[call]] [[BIS_fnc_ambientPlanes]];</code> |EXAMPLE1=
|x1= <code>[] [[call]] [[BIS_fnc_ambientPlanes]];</code> |EXAMPLE1=


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


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

Revision as of 22:42, 16 January 2021

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

Notes

Bottom Section