Arma 3 Scripting

BIS_fnc_spawnEnemy

  • Runs with spawn
  • Arma 3 v0.50
  • First in Arma 2: Operation Arrowhead v1.50

Function · Markdown · JSON · original wiki page

Description

Constantly spawns enemies around a player according to array of enemy classes. The units will try to hunt down the player.

Syntax

[aPlayer, target, side, classes, maxEnemies, delay, code] spawn BIS_fnc_spawnEnemy

Parameters:

Returns: Nothing

Examples

Example 1

[player, player, opfor, ["O_Soldier_F"]] spawn BIS_fnc_spawnEnemy;

See also

BIS_fnc_spawnGroup · BIS_fnc_stalk