BIS fnc ambientPlanes: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<code>(\[[a-zA-Z0-9_, ]*\] )?\[\[(call|spawn)\]\] \[\[(BI[NS]\_fnc\_[a-zA-Z0-9_]+)\]\];?<\/code>" to "<sqf>$1$2 $3;</sqf>") |
Lou Montana (talk | contribs) m (Text replacement - " |s1=[" to " |s1= [") |
||
Line 17: | Line 17: | ||
|descr=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) |
Revision as of 23:11, 12 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 [[Multiplayer Scripting#Locality |descr=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