Scripts / Spawn enemies in a near location when the player enters a trigger zone?

Author
Message
ZephaHD
8
Years of Service
User Offline
Joined: 19th Mar 2016
Playing:
Posted: 16th Feb 2017 15:01
Hello, I can't code but was wondering if this script exists anywhere as it seems quite an easy concept. Basically, when my player reaches a watch tower, I wanted a new wave of enemies to spawn in front of the watch tower, so the player can snipe these enemies from the top of the tower. Is this possible? Thanks.
GTX 660Ti, Intel I7 870 (8 CPUs) -2.9GHz, 16GB RAM, 1920x1080 & 1280x1024.
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 16th Feb 2017 16:17
set the characters as spawn at start = no, name them all the same (like "watch_tower_zombie") then place a trigger zone where you want the player to be when you want the characters to appear with the ifused field reading "watch_tower_zombie" (or whatever you named the characters).
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
ZephaHD
8
Years of Service
User Offline
Joined: 19th Mar 2016
Playing:
Posted: 17th Feb 2017 11:29 Edited at: 17th Feb 2017 11:33
Thanks for the quick reply, I'll be sure to try this!
GTX 660Ti, Intel I7 870 (8 CPUs) -2.9GHz, 16GB RAM, 1920x1080 & 1280x1024.
ZephaHD
8
Years of Service
User Offline
Joined: 19th Mar 2016
Playing:
Posted: 17th Feb 2017 11:36
Works perfectly! Thanks again! Is there any way so that once these last enemies that just spawned in are killed, the player wins the game?
GTX 660Ti, Intel I7 870 (8 CPUs) -2.9GHz, 16GB RAM, 1920x1080 & 1280x1024.

Login to post a reply

Server time is: 2024-12-23 03:55:26
Your offset time is: 2024-12-23 03:55:26