Difference between revisions of "BIS fnc prepareAO"

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision)
(Page filling)
Line 1: Line 1:
 
 
{{Function|= Comments
 
{{Function|= Comments
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
Line 8: Line 7:
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| <pre>/*
+
| Spawns random patrols and/or vehicles in trigger areas with proper names. Side selected in the triggers "Activation" listbox will determine the side of the spawned asset(s).<br />
  
Description:
+
Trigger '''names''' (a.k.a "Trigger text", '''not''' "Variable Name") defines the kind of spawn. Supported trigger names are:
Spawns random patrols and/or vehicles in trigger areas with proper names. Side selected in the triggers "Activation" listbox will determine the side of the spawned asset(s).
+
* '''GEN_infantry''': spawns random infantry patrol with sentry waypoints ('''NOTE:''' only circular triggers are supported, min. axis should be 500m)
Supported trigger names:
+
* '''GEN_patrolVeh''': spawns a random vehicle. If a civilian unit is synchronized with the trigger, its waypoint will be used by the spawned vehicle<br /><!--
- GEN_infantry: spawns random infantry patrol with sentry waypoints (NOTE: only circular trigger supported, min. axis should be 500m)
+
-->You can specify the vehicle type by typing one of the following into the trigger's "On Act." field:
- GEN_patrolVeh: spawns a random vehicle. If a civilian unit is synchronized with the trigger, its waypoint will be used by the spawned vehicle
+
** car
- you can specify the vehicle type by typing one of the following into the trigger's "On Act." field:
+
** apc
- car
+
** tank
- apc
+
* '''GEN_ammo''': spawns a random number of ammoboxes. You can get and idea of the shape this composition will have by making this trigger rectangular with dimensions 5m x 1m. You can also specify the amount of crates spawned by using min. and max. Timeout values (supported range is 1 to 6 crates).
- tank
+
* '''GEN_civilCar''': spawns a random empty civil car |= Description
- GEN_ammo: spawns a random number of ammoboxes. You can get and idea of the shape this composition will have by making this trigger rectangular with dimensions 5mx1m. You can also specify the amount of crates spawned by using Min. and Max. Timeout values (supported range is 1 - 6 crates).
+
____________________________________________________________________________________________
- GEN_civilCar: spawns a random empty civil car
 
  
Parameter(s):
+
| density call [[BIS_fnc_prepareAO]] |= Syntax
_this: NUMBER - enemy presence density index used for random footpatrols (default: 1)
 
  
Returns:
+
|p1= density: [[Number]] - (Optional, default 1) enemy presence density index used for random footpatrols |= Parameter 1
NOTHING
 
*/
 
  
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
+
| [[Nothing]] |= Return value
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| <!-- [] call [[BIS_fnc_prepareAO]]; --> |= Syntax
+
|x1= <code>0.75 [[call]] [[BIS_fnc_prepareAO]];</code> |= Example 1
 
 
|p1= |= Parameter 1
 
 
 
| |= Return value
 
____________________________________________________________________________________________
 
  
|x1= <code></code> |=  
+
|x2= <code>[[call]] [[BIS_fnc_prepareAO]];</code> |= Example 2
 
____________________________________________________________________________________________
 
____________________________________________________________________________________________
  
| |= See also
+
| [[BIS_fnc_spawnGroup]], [[createUnit]] |= See also
 
 
 
}}
 
}}
  

Revision as of 00:07, 6 May 2018

Introduced with Arma 3 version1.00
  

Click on the images for descriptions

Introduced in

Game:
Arma 3
Version:
1.00

Description

Description:
Spawns random patrols and/or vehicles in trigger areas with proper names. Side selected in the triggers "Activation" listbox will determine the side of the spawned asset(s).
Trigger names (a.k.a "Trigger text", not "Variable Name") defines the kind of spawn. Supported trigger names are:
  • GEN_infantry: spawns random infantry patrol with sentry waypoints (NOTE: only circular triggers are supported, min. axis should be 500m)
  • GEN_patrolVeh: spawns a random vehicle. If a civilian unit is synchronized with the trigger, its waypoint will be used by the spawned vehicle
    You can specify the vehicle type by typing one of the following into the trigger's "On Act." field:
    • car
    • apc
    • tank
  • GEN_ammo: spawns a random number of ammoboxes. You can get and idea of the shape this composition will have by making this trigger rectangular with dimensions 5m x 1m. You can also specify the amount of crates spawned by using min. and max. Timeout values (supported range is 1 to 6 crates).
  • GEN_civilCar: spawns a random empty civil car

Syntax

Syntax:
density call BIS_fnc_prepareAO
Parameters:
density: Number - (Optional, default 1) enemy presence density index used for random footpatrols
Return Value:
Nothing

Examples

Example 1:
0.75 call BIS_fnc_prepareAO;
Example 2:
call BIS_fnc_prepareAO;

Additional Information

Execution:
call
Multiplayer:
-
See also:
BIS_fnc_spawnGroupcreateUnit

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section