HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

What order would you approach this with?

02-06-2010, 06:49 PM#1
saeyne
Hello all :)

I am trying to make a spawn system based on a unit getting near a building. Kind of like gauntlet legends for nes/n64/gc. I also have a level system much like the previously stated game.

Basically, I want to enter a level, have it make the spawn generators at specified locations, and then when a unit gets near those spawn generators, they will spawn units while a hero is within a certain range.

So far, I have made it so that when a unit gets within range of a building I placed in the map, it spawns units anytime the unit enters the proper range. Which is great, sort of. Anytime he re-enters the range it triggers again, which is unintended, but that is a bug I think I can fix.

My question is, I feel that if I start with the spawn system, then the level system, I will have to make lots of changes to the spawn system to get it to work with the level system. Whereas, if i do the level system first, i can make the spawn system based on it.

Also, my current spawn system event is based off the unit id of the building I placed myself into the level. Is there a way to generalize this so that it works off of unit type? For example: spawn when unit approaches a "farm", and not "gg_unit_o004_0021".

If you have any input or suggestions on how to approach this, I would really appreciate it! Thank you :)

-Saeyne
02-07-2010, 02:13 AM#2
Saishy
Every X Seconds:
- Search for all units of YOURBUILDINGTYPE and them gets all units of type YOURHERO that are near them and spawn your units.