(SPAWNER) AI Character spawner script for spawning enemies after x amount of time and/or zombies killed.
was wanting to see if someone attempted to make one before releasing it lol
SolarPortal wrote:(SPAWNER) AI Character spawner script for spawning enemies after x amount of time and/or zombies killed.
Here is a Spawn Point Script for you i wrote a couple of weeks back, was wanting to see if someone attempted to make one before releasing it lol
Create an entity (this is the spawn point) in the scene and attach this as an external script:
Open the script and change the top 4 variables to your liking. Then it will spawn a preset every chosen milliseconds until a maximum have been created. Once they are deleted, the spawner will take note and respawn another one without anymore code.
Hope this helps
User Variables
maxSpawnAmount = 6
spawnHeightOffset = 1
spawnPresetName = "SpawnedCharacter_Temp"
spawnEveryMilliseconds = 1000
spawnID = entity.spawnPreset( spawnPresetName, x, y + spawnHeightOffset, z );
Gamers!
Users browsing this forum: No registered users and 1 guest