BIS fnc spawnEnemy: Difference between revisions
Jump to navigation
Jump to search
m (template:command argument fix) |
Lou Montana (talk | contribs) m (Text replacement - "|= Game name" to "|Game name=") |
||
Line 2: | Line 2: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| arma2oa | | | arma2oa |Game name= | ||
|1.00|= Game version | |1.00|= Game version |
Revision as of 23:26, 30 August 2019
Description
- Description:
- Spawns enemies around a player according to array of enemy classes. The units will try to hunt down the player.
- Execution:
- call
- Groups:
- Uncategorised
Syntax
- Syntax:
- [aPlayer, target, side, classes, maxEnemies, delay, code] call BIS_fnc_spawnEnemy
- Parameters:
- aPlayer: Object - player
- target: Object - refence object (enemies will be spawned on same direction in respect to the player)
- side: Side - side of the spawned enemies
- classes: Array of String - list of enemy classes (units will form a group together)
- maxEnemies: Number - (Optional, default 10) maximum number of enemies at once
- delay: Number - (Optional, default 30) time between spawn waves
- code: Code - (Optional, default {}) - code to execute on each unit (referenced by _this)
- Return Value:
- Array - spawned enemies
Examples
- Example 1:
[player, player, opfor, ["O_Soldier_F"]] spawn BIS_fnc_spawnEnemy;
Additional Information
- See also:
- BIS_fnc_spawnGroupBIS_fnc_stalk
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