BIS fnc ambientPlanes: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "{{Function " to "{{RV|type=function ") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(18 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=function | {{RV|type=function | ||
| tkoh | |game1= tkoh | ||
|version1= 1.00 | |||
| | |game2= arma3 | ||
|version2= 0.50 | |||
|gr1 = Ambient | |gr1= Ambient | ||
|eff= global | |eff= global | ||
| Creates ambient airplanes fly-by near airports around the [[player]]. It will automatically get classes from | |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 > 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. | |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. | ||
| [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 21: | Line 23: | ||
|p3= dirStep: [[Number]] - (Optional, default 30) | |p3= dirStep: [[Number]] - (Optional, default 30) | ||
| [[Nothing]] | |r1= [[Nothing]] | ||
|x1= < | |x1= <sqf>[] call BIS_fnc_ambientPlanes;</sqf> | ||
|x2= < | |x2= <sqf>[30, 3000] call BIS_fnc_ambientPlanes;</sqf> | ||
| [[createUnit]] [[createVehicle]] [[BIS_fnc_spawnGroup]] | |seealso= [[createUnit]] [[createVehicle]] [[BIS_fnc_spawnGroup]] | ||
}} | }} | ||
Latest revision as of 13:33, 27 July 2022
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:
- Example 2:
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