Hello, I want to be able to restrict a unit to a specified region - I figure I can do this with a trigger that checks if the unit goes out of Region X, but I would rather do it in the data editor if possible.
Hello, I want to be able to restrict a unit to a specified region - I
figure I can do this with a trigger that checks if the unit goes out of
Region X, but I would rather do it in the data editor if possible.
You could create a behavior on the unit that checks to see if the unit is out of range of a "dummy unit" if the unit is out of range of that dummy unit ... it would teleport the unit back too the dummy unit....
Rollback Post to RevisionRollBack
Skype
KageNinpo = SN
My Libraries
DialogLeaderboard & TeamSort
My Projects
SPACEWAR Tribute
Infinite TD
i need to make an area which is restricted to one team/player. so there is a zone where you can train units without being attacked. you know that solution as well? thx for your efforts so far :)
you can have it as event: unit enters notallowed action: move unit instantly to point allowed something like that.
so it teleports units out of area when ever they enter and give it a condition that unit belongs to team whatever
You could always use a terrain validator for a buff that the move ability uses as a requirement and the buff applies a create persistant with an offset behind the unit to teleport to.
As you can have terrain hidden under other terrain in the editor (thats why always remove old terrain before painting new terrain on) the buff will be disabled unless the unit stands on the region with the hidden terrain you want to trigger the remove. The movement of the unit will then be disabled by the requirement making the unit stop and canceling its move orders while the persistant gets the unit to teleport out using another terrain validator so that it cant teleport onto the triggering terrain.
thx for this one, too. but i already used zeropoints' way. but now i have a spawnzone on an island for each player. the players get into combat using zeropoints' suggested trigger. :)
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hello, I want to be able to restrict a unit to a specified region - I figure I can do this with a trigger that checks if the unit goes out of Region X, but I would rather do it in the data editor if possible.
you mean that the unit cant leave the region? i am looking for the opposite. i want to build in a spawn-protection area in my mod. can anyone help us?
You could create a behavior on the unit that checks to see if the unit is out of range of a "dummy unit" if the unit is out of range of that dummy unit ... it would teleport the unit back too the dummy unit....
Thx, but does not solve my problem ;)
I remember seing a trap spell a while back.
Here it is. It's in the map Straight_Shot_and_Others.SC2Map. I never checked how it was made, so I don't know if it'll help you or not.
i need to make an area which is restricted to one team/player. so there is a zone where you can train units without being attacked. you know that solution as well? thx for your efforts so far :)
lol i sent you a PM because i needed an answer from you in an other thread. did you get it?
edit: i recognized it was you who answered in both threads right after i posted back :D
you can have it as event: unit enters notallowed action: move unit instantly to point allowed something like that.
so it teleports units out of area when ever they enter and give it a condition that unit belongs to team whatever
i'll try that one. thx
You could always use a terrain validator for a buff that the move ability uses as a requirement and the buff applies a create persistant with an offset behind the unit to teleport to.
As you can have terrain hidden under other terrain in the editor (thats why always remove old terrain before painting new terrain on) the buff will be disabled unless the unit stands on the region with the hidden terrain you want to trigger the remove. The movement of the unit will then be disabled by the requirement making the unit stop and canceling its move orders while the persistant gets the unit to teleport out using another terrain validator so that it cant teleport onto the triggering terrain.
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
thx for this one, too. but i already used zeropoints' way. but now i have a spawnzone on an island for each player. the players get into combat using zeropoints' suggested trigger. :)