I added a behavior to a Command Center to automatically spawn a Marine every so often and it works great... until I hit a certain number of units around the Command Center. It seems that right around 43 Marines, it just stops spawning them. If I move the group that's gathered around the Command Center away, spawning continues.
Is there a list of core game files apart from the "game data" type? There might be a global limit or something.
Try setting the range to 20 or so, that might override the default.
Maybe try checking/unchecking the flags on the effect? One is called "placement" after all.
Other random stuff: try the effect with air units, and try lifting off the CC (in WC3 units would stack at the center of the spawner when the range limit was reached)
Maybe try checking/unchecking the flags on the effect? One is called "placement" after all.
I tried removing the placement flag and it worked as far as the limit but it made them spawn inside the Command Center than outside. Then when they moved they shot out all of a sudden due to pathing issues. It worked but looked really weird.
I did end up fixing it though after checking out another map. I had to remove the Pathing Footprint and Placement Footprint of the Command Center. Currently in my test map there are 200 Marines now around my Command Center which is enough for all practical purposes.
what you can do is on the spawning behaviors you do this..
New objects
create new effect (type:issue order effect, Name:SpawnerRallyOrder)
set to give order to targeted to move/attack to the target location (might be more involved then this but im sure some simple searching would find your answer on here)
create new effect (type:persistent effect, Name:SpawnerRallyPoint)
Set intervals/ periods for this effect to 1 i dont have all the info in front of me but heres enough to figure it out if you need more info pm me and i can get you more info... basically if you want the rally to be in the direction you have the building facing you can set the persistent effects offsets to take the units facing angle into account. but yeah set the offsets to a reasonalbe distance away from the command center
Set the target effect for this to use the "SpawnerRallyOrder" effect
Edit current data objects
on the "spawn unit" effect... I think your spawning units one at a time.... if not you may have to add in a search area effect to hit all the spawned units but on the spawn unit effect there is a field to add an effect to run on the "spawned unit" here you would run the "SpawnerRallyPoint" effect which should find the rally point then order the unit to move to the offset position...
this should make it so your command center doesnt get surrounded by units it is spawning.
Rollback Post to RevisionRollBack
Skype
KageNinpo = SN
My Libraries
DialogLeaderboard & TeamSort
My Projects
SPACEWAR Tribute
Infinite TD
ur best bet i think would be to set the spawn point with trigers and use
REGIONS. thats how i did it .
This would be easier to do... yet may cause more trigger lag.
And youd be missing out on some good practice with the data editor and persistent effects...... (which IMO once you figure them out a little... it opens alot of possibilities to you as a data editor. It makes you go HOLY FUCKING SHIT !!!!)
Rollback Post to RevisionRollBack
Skype
KageNinpo = SN
My Libraries
DialogLeaderboard & TeamSort
My Projects
SPACEWAR Tribute
Infinite TD
This would be easier to do... yet may cause more trigger lag.
And youd be missing out on some good practice with the data editor and persistent effects...... (which IMO once you figure them out a little... it opens alot of possibilities to you as a data editor. It makes you go HOLY FUCKING SHIT !!!!)
LOL word ;)
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I added a behavior to a Command Center to automatically spawn a Marine every so often and it works great... until I hit a certain number of units around the Command Center. It seems that right around 43 Marines, it just stops spawning them. If I move the group that's gathered around the Command Center away, spawning continues.
What causes this and is there a way to fix it?
You're using a "create unit" effect to spawn the Marines, right? What did you set as maximum spawn range for the effect?
Ability - Train defaults to a placement range of 2, so if there's no room within 2 range of the training building the unit won't be spawned.
Yes, it's a periodic Behavior that calls the Effect "Create Unit". I'm not using the Train Ability. Maximum range is 500.
Is there a list of core game files apart from the "game data" type? There might be a global limit or something.
Try setting the range to 20 or so, that might override the default.
Maybe try checking/unchecking the flags on the effect? One is called "placement" after all.
Other random stuff: try the effect with air units, and try lifting off the CC (in WC3 units would stack at the center of the spawner when the range limit was reached)
I tried removing the placement flag and it worked as far as the limit but it made them spawn inside the Command Center than outside. Then when they moved they shot out all of a sudden due to pathing issues. It worked but looked really weird.
I did end up fixing it though after checking out another map. I had to remove the Pathing Footprint and Placement Footprint of the Command Center. Currently in my test map there are 200 Marines now around my Command Center which is enough for all practical purposes.
@siege911: Go
what you can do is on the spawning behaviors you do this..
this should make it so your command center doesnt get surrounded by units it is spawning.
ur best bet i think would be to set the spawn point with trigers and use REGIONS. thats how i did it .
This would be easier to do... yet may cause more trigger lag.
And youd be missing out on some good practice with the data editor and persistent effects...... (which IMO once you figure them out a little... it opens alot of possibilities to you as a data editor. It makes you go HOLY FUCKING SHIT !!!!)
LOL word ;)