I've been wondering how to spawn units like mercenary buildings in marine arena after pressing a button, but without using a triggering unit... because I found that is kinda laggy.
Hope you can help me :) !
I have no idea, what you want exactly. What do you mean by "without using a triggering unit"? Use a trigger without the triggering unit function? Or don't use a mercenary camp or something similar?
Also, which kind of lag are you referring to? Does it take too long until the unit is created or does the map lag when you spawn too much units?
Im sorry, for example a player presses a button and it trains an X unit, so basically it runs the trigger...
"any unit enters the map "
condition-> unit type (triggering unit)= X
Actions
Remove triggering unit from the game
Create 1 building for triggering player at point x
I do it like this, but I have constant spawns , so the tigger gets evaluated every time a player get a unit ?
so, my question : is there other possible way to do it without the triggering unit enters the map event ?
I can't think of many other ways to work it, but maybe someone else will know ^.^
Actually only trains 1 unit , the triggering unit ... wich only proposses is run the trigger's event:
EVENT "any unit enters the map"
CONDITION (Type of unit (Triggering unit))
ACTIONS Remove triggering unit from the map / create 1 factory for (triggering player) at point
...and the trigger make an specific building for the triggering player.
But i do it a lot of times and basically every building that I want to make I do it training an specific unit to run an specific trigger...
So every time a unit enters the entire map, all this tiggers are evaluated :S, really dont tink other way to run the trigger that spawn the specific unit (building in my case)
Basically you will now only need 1 trigger instead of 1 for each. Keep in mind that even if you have nice triggers, too many units will ALWAYS slow down the map.
I don't know what the obsession with Unit Enters Map is. If the unit is being trained from a building (as I can only assume since I didn't get an answer), then there are other events you can use such as Unit Training Progress, or Unit Uses Ability. Just my 2 cents.
Hi !,
I've been wondering how to spawn units like mercenary buildings in marine arena after pressing a button, but without using a triggering unit... because I found that is kinda laggy. Hope you can help me :) !
Hey.
I have no idea, what you want exactly. What do you mean by "without using a triggering unit"? Use a trigger without the triggering unit function? Or don't use a mercenary camp or something similar?
Also, which kind of lag are you referring to? Does it take too long until the unit is created or does the map lag when you spawn too much units?
Im sorry, for example a player presses a button and it trains an X unit, so basically it runs the trigger...
"any unit enters the map " condition-> unit type (triggering unit)= X Actions Remove triggering unit from the game Create 1 building for triggering player at point x
I do it like this, but I have constant spawns , so the tigger gets evaluated every time a player get a unit ? so, my question : is there other possible way to do it without the triggering unit enters the map event ?
Thx !
PD:
It gets laggy in the test when there are many units in the map
Is the player training units out of a building?
I can't think of many other ways to work it, but maybe someone else will know ^.^
Do a loop!
For more info on loops: Triggered Unit Movement Tutorial
Actually only trains 1 unit , the triggering unit ... wich only proposses is run the trigger's event:
But i do it a lot of times and basically every building that I want to make I do it training an specific unit to run an specific trigger... So every time a unit enters the entire map, all this tiggers are evaluated :S, really dont tink other way to run the trigger that spawn the specific unit (building in my case)
@disassociative: Go Welcome to sc2mapster! Feel free to send me a PM if you need anything or have any questions!
Try something like this. So there's only 1 trigger. The switch action may be just what you're looking for.
Basically you will now only need 1 trigger instead of 1 for each. Keep in mind that even if you have nice triggers, too many units will ALWAYS slow down the map.
@zeldarules28: Go
thx a lot for the help, I'll try to gather all of the triggers into 1 only...
and thanks to all for the help :)
I don't know what the obsession with Unit Enters Map is. If the unit is being trained from a building (as I can only assume since I didn't get an answer), then there are other events you can use such as Unit Training Progress, or Unit Uses Ability. Just my 2 cents.
@Shawn91210: Go
thanks for the help, the event Unit uses Ability works just fine !