Spawn Custom Enemies around the Player that will also Hunt him, using this Code!

Subscribers:
2,950
Published on ● Video Link: https://www.youtube.com/watch?v=uPHCQqwihvQ



Duration: 0:00
524 views
40


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  




Other Videos By Gunter Severloh


2024-10-27Use these Codes in Your Scenarios to get AI to Join Your group!
2024-10-20Obliterate Your enemies using a Proximity Drone with this Script! / Drone Grenadier UPDATE!
2024-10-13With this Script You can have a Helicopter Paradrop infantry when the Player enters an Area!
2024-10-06Drop Grenades on Your Enemies from Deployable and Existing Drones with this Script!
2024-09-29Spawn Custom Infantry & Vehicles in Waves with Defined Marker paths using this Script!
2024-09-223 Ways You can keep Playing after getting Killed in Singleplayer!
2024-09-15Create animated Checkpoints in Your Scenarios with this Script!
2024-09-08Open and Close gates Automatically when You go through them With this Simple Code!
2024-09-05Give Soldiers in Your Scenarios Gun Lights with this Code!
2024-09-01Use this Code to Create Hostages You can Rescue! & Give Soldiers Gun Lights with this Code!
2024-08-25Spawn Custom Enemies around the Player that will also Hunt him, using this Code!
2024-08-18Four ways You can Earn Rewards in Your Scenarios for Completing Tasks!
2024-08-11AI Medics in Your Squad will Automatically Heal You and Your Squad with this Code!
2024-08-04Use this Module to Spawn/Despawn Waves of Enemies, or Dynamic Patrols in Your Scenario!
2024-07-28Respawn in Singleplayer with this Code!
2024-07-21Subtract Tickets when You Respawn in Your Scenario!
2024-07-14Spawn Enemy that will Hunt You in Waves using the Herne Hunter AI Script!
2024-07-07Fortify your Position with this Trench Digging Script!
2024-06-30Display Your Picture as Intel on a Laptop, TV, or Monitor in Your Scenario with this Code!
2024-06-23Create Suicide Bombers with Units or Vehicles that will Hunt You with this Script!
2024-06-16This Code will help Create the Feeling of Impending Doom in Your Scenario!