Spawn Custom Enemies around the Player that will also Hunt him, using this Code!
This video will show you how to setup and use the Bis_fnc_spawnEnemy function,
i will show you how to add, use, and spawn enemy units of your choice around the player.
Here is the official wiki page on the function being used in the video:
https://community.bistudio.com/wiki/B...
Here is the code from the video without the classnames, you need to acquire those yourself:
[player, player, opfor, ["",""], 5, 10] spawn BIS_fnc_spawnEnemy;
hint "The enemy has been spawned!";
A brief list of what this function does:
- The player is the target that will be hunted
- Who hunts the player is defined with classnames and faction side
- The function will spawn enemy units around the player continuously
- You can define how many enemy units are to spawn
- You can set how long before each unit spawns
Timestamps
0:00 Introduction
1:12 The Code
2:15 Code review
3:56 Log classnames
5:18 Add logged classnames to code
6:05 Put code into trigger
6:25 Mission test
Music used in the video:
--------------------------------------
- ES_Yhello by Lofive
Codes & Scripts Playlist
• Arma 3 Codes & Scripts
Arma 3 Tutorials Playlist
• Arma 3 Tutorials
Arma 3 Code Snippets Playlist
• Arma 3 Code Snippets