Okay so i have 2 questions. I have a building that spawns multiple types of units,2 zealots 1 sentry to be exact. what i need to know is how to make a spawn location, so rather than spawning around the build i need them to spawn a bit further away from the building. secondly also i need boundaries. so once the boundary or region is filled up with the units it doesnt spawn the unit any more like in sc1 it say implacable unit and it doesnt spawn it until you move the units out of the way any idea how. Answers for either question appreciated :D
Depends what you are using to spawn them with. The Spawn behaviour and the Arm Magazine effect have Offset fields. The Create Unit effect has the Rally Unit fields that can order it to move to a location, the Spawn Offset and can be used by Create Persistent effects adding more offset options.
As for the spawn limitations just use an Ennumerate Area validator.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
Ok. I just want the units to warp in further than where they're appearing right now after they are trained. Im spawning them with the buildings in the normal way. Is the after trained location that i want to set.
For the location -
Create a region where ever you want the spawning location to be. Then you'll need a trigger:
Event: Unit (your spawning unit) creates a unit using ability (your spawning ability).
Action: Move created unit instantly to center of region (your spawning region).
For the boundary -
Added on to the end of the same trigger above....
Pick each unit in region (your spawning region) and do actions:
Modify variable (a local integer variable) +1.
IF variable => the limit of how many units you want, THEN disable ability (your spawning ability) for unit (your spawning unit).
Okay so i have 2 questions. I have a building that spawns multiple types of units,2 zealots 1 sentry to be exact. what i need to know is how to make a spawn location, so rather than spawning around the build i need them to spawn a bit further away from the building. secondly also i need boundaries. so once the boundary or region is filled up with the units it doesnt spawn the unit any more like in sc1 it say implacable unit and it doesnt spawn it until you move the units out of the way any idea how. Answers for either question appreciated :D
I have the same question. How do u set the units spawning locations?? I guess nobody answered.
Depends what you are using to spawn them with. The Spawn behaviour and the Arm Magazine effect have Offset fields. The Create Unit effect has the Rally Unit fields that can order it to move to a location, the Spawn Offset and can be used by Create Persistent effects adding more offset options.
As for the spawn limitations just use an Ennumerate Area validator.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
@DrSuperEvil: Go
Ok. I just want the units to warp in further than where they're appearing right now after they are trained. Im spawning them with the buildings in the normal way. Is the after trained location that i want to set.
Easy.
For the location - Create a region where ever you want the spawning location to be. Then you'll need a trigger: Event: Unit (your spawning unit) creates a unit using ability (your spawning ability). Action: Move created unit instantly to center of region (your spawning region).
For the boundary - Added on to the end of the same trigger above.... Pick each unit in region (your spawning region) and do actions: Modify variable (a local integer variable) +1. IF variable => the limit of how many units you want, THEN disable ability (your spawning ability) for unit (your spawning unit).
Use the Ability: Offset field.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg