BIS fnc ambientPlanes: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " \[\[Category:\{\{Name|[a-z0-9]+\}\}: Functions\|\{\{uc:[a-zA-Z0-9]+\}\}\]\]" to "")
m (Some wiki formatting)
 
(3 intermediate revisions by the same user not shown)
Line 11: Line 11:
|eff= global
|eff= global


|descr= Creates ambient airplanes fly-by near airports around the [[player]]. It will automatically get classes from {{ic|[[configFile]] >> "CfgVehicles"}} on all planes that have "ambientType" attribute > 0.
|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.


|mp= Since this function uses [[player]] and its effect is [[Multiplayer Scripting#Locality
|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.


|descr=global]], this can only be used in singleplayer or executed locally on a player, usually the group leader.
|s1= [quantity, areaRadius, dirStep] call [[BIS_fnc_ambientPlanes]]
 
|s1=[quantity, areaRadius, dirStep] call [[BIS_fnc_ambientPlanes]]


|p1= quantity: [[Number]] - (Optional, default 5)
|p1= quantity: [[Number]] - (Optional, default 5)
Line 27: Line 25:
|r1= [[Nothing]]
|r1= [[Nothing]]


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


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


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

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