Hello again, i would like some advice on how to construct a teleportation ability that would send the users hero back to a specific location whenever he presses the ability button. This teleportation ability would take some time (say about 5 seconds) and would not let you move unless you stop the process of teleportation by moving. How is this doable? Right now im experimenting with the carrier hyperjump ability which mimics almost what im looking for except that i dont know how to select the specific location of where is the hero unit supposed to be teleported and whenver i use this theres another equal unit created wherever you pointed to be teleported while the other one is in the process of beign teleported. Weird huh?
There's the easy way, which would be to create a new ability that does nothing, add it to your hero. Then in triggers you'd put as an event for when a "unit uses 'so and so' ability". To then do the actions of "moving the unit instantly" to the predetermined point which is most likely already placed on the map.
Then there's the harder way, however, the more "correct way" as it is best to not use triggers for data and abilities, which is what DrSuperEvil is saying how to do above. You would have to potentially do a search effect of the map for a unit that you've intentionally hidden from view, then issue an order for that unit to target the hero,and "teleport" it to the hidden unit's location. You can hide a unit in the advanced options for it in the terrain editor after it has been placed. I think you can still just double click the placed unit to get to that menu. In addition, I don't quite remember where it is, but one of the flags in the ability will allow you to stop the movement during cast. If you're new, it's probably going to take me a whole forum page to describe in detail exactly how to do all this if this small paragraph wasn't enough for you. Maybe look at some of the tutorials in my signature link to help you out with learning data, or if you're in a rush, the easy way should still work, it's just not ideal.
Hello again, i would like some advice on how to construct a teleportation ability that would send the users hero back to a specific location whenever he presses the ability button. This teleportation ability would take some time (say about 5 seconds) and would not let you move unless you stop the process of teleportation by moving. How is this doable? Right now im experimenting with the carrier hyperjump ability which mimics almost what im looking for except that i dont know how to select the specific location of where is the hero unit supposed to be teleported and whenver i use this theres another equal unit created wherever you pointed to be teleported while the other one is in the process of beign teleported. Weird huh?
Thanks
Is the specific location able to be set or going to be predetermined?
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
yes is going to be predetermined. North team will go to north base and south team to south base.
So global search for a potentially hidden unit that then uses a Teleport effect after a precast but is interruptible?
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
Whut? Im sorry i didnt understand your answer. Remember im on n00b editor user level.
@JEGCPR: Go
There's the easy way, which would be to create a new ability that does nothing, add it to your hero. Then in triggers you'd put as an event for when a "unit uses 'so and so' ability". To then do the actions of "moving the unit instantly" to the predetermined point which is most likely already placed on the map.
Then there's the harder way, however, the more "correct way" as it is best to not use triggers for data and abilities, which is what DrSuperEvil is saying how to do above. You would have to potentially do a search effect of the map for a unit that you've intentionally hidden from view, then issue an order for that unit to target the hero,and "teleport" it to the hidden unit's location. You can hide a unit in the advanced options for it in the terrain editor after it has been placed. I think you can still just double click the placed unit to get to that menu. In addition, I don't quite remember where it is, but one of the flags in the ability will allow you to stop the movement during cast. If you're new, it's probably going to take me a whole forum page to describe in detail exactly how to do all this if this small paragraph wasn't enough for you. Maybe look at some of the tutorials in my signature link to help you out with learning data, or if you're in a rush, the easy way should still work, it's just not ideal.
New to the Editor? Need a tutorial? Click Here
Want data assets? Click Here