BIS fnc ambientPlanes: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl>" to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
| tkoh | | tkoh | ||
|1.00 | |1.00 | ||
|gr1 = Ambient | |gr1 = Ambient | ||
|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. | | 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. | ||
|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]] | | [quantity, areaRadius, dirStep] call [[BIS_fnc_ambientPlanes]] | ||
|p1= quantity: [[Number]] - (Optional, default 5) | |p1= quantity: [[Number]] - (Optional, default 5) | ||
|p2= areaRadius: [[Number]] - (Optional, default 10000) - area radius around airports where planes can spawn/fly | |p2= areaRadius: [[Number]] - (Optional, default 10000) - area radius around airports where planes can spawn/fly | ||
|p3= dirStep: [[Number]] - (Optional, default 30) | |p3= dirStep: [[Number]] - (Optional, default 30) | ||
| [[Nothing]] | | [[Nothing]] | ||
|x1= <code>[] [[call]] [[BIS_fnc_ambientPlanes]];</code> | |x1= <code>[] [[call]] [[BIS_fnc_ambientPlanes]];</code> | ||
|x2= <code>[30, 3000] [[call]] [[BIS_fnc_ambientPlanes]];</code> | |x2= <code>[30, 3000] [[call]] [[BIS_fnc_ambientPlanes]];</code> | ||
| [[createUnit]] [[createVehicle]] [[BIS_fnc_spawnGroup]] | | [[createUnit]] [[createVehicle]] [[BIS_fnc_spawnGroup]] | ||
}} | }} | ||
Revision as of 22:36, 17 January 2021
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