Scripts / Spawner and Waves

Author
Message
Farcry
9
Years of Service
User Offline
Joined: 11th May 2015
Location:
Posted: 5th Jul 2015 19:26
Hi I was just wondering if there were scripts in gameguru that can spawn enemies? Also is there a script that makes a wave system like in call of duty zombies and if so how would you combine it with enemy spawner so it spawns more enemies every wave?
PM
!nullptr
Forum Support
9
Years of Service
User Offline
Joined: 27th Mar 2015
Location: Australia
Posted: 5th Jul 2015 22:25 Edited at: 5th Jul 2015 22:29
Here's one we prepared earlier.

Of the 2 main methods used, the very last suggestion is the least coded solution. ie: Use the if Used property on spawn entities triggered by zones.

https://forum.game-guru.com/thread/212464

To get "waves" you'd need to sit down and tinker with script (similar to the linked topic) to make it happen based on what triggers the waves. Having multiple zones on your "path" triggering spawn as you go is probably easiest.
AKA SisterMatic (Steam)
Development/ Gaming Rigs
Sys 1: i7-4770 (3.5)/16Gb/128 SSD/3Tb/970gtx/2 x 23, 1 x 27 LCD - Sys 2: i7/8Gb/670gtx/1.5Tb/1 x 23 LCD - Sys 3: Amd Quad/8Gb/645gtx/1Tb/30" LCD
PM
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 6th Jul 2015 11:10
Right click the enemies and name them all the same (I.e. wave1 for the enemies to spawn at the first trigger) then set them to spawn at start = no.
Now place a trigger zone somewhere on the map the player will reach first (resize it if needed) and set the name of the first wave enemies (in my example; wave1) in the ifused field of that zone.

Repeat the process using a different name for the next wave
(You will need to put the triggers in different areas or do some scripting to change when the triggers are activated if you want them to be in the same area - for a defend the position type map)

The main issue with doing this in GG is that you have to set up every enemy in the editor first (although its easy enough to extract and place multiples it will drop frame rate a lot) - there is no clone or create entity command via script
life\'s one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11

Login to post a reply

Server time is: 2024-12-22 01:24:20
Your offset time is: 2024-12-22 01:24:20