- Joined
- Feb 27, 2019
- Messages
- 833
Hello!
I am trying to make a spell that acts as Staff of Teleportation without interupting the target unit. It will have to work while clicking the minimap aswell, just as Staff of Teleportation.
My goal is that you use the staff, select desired unit the same way as one would with staff(even through pressing on the minimap) and the unit is telported to the target immediatly.
Do you think this is possible? How would one make that happen?
EDIT: I can set a variable to an order but I cant use the order. How can I use the order in the variable?
My friend also pointed out that I could use a dummy unit that always is in the position of the unit that I wish to teleport to and on my map this would work since there are a max of 6 units to teleport to.
I am trying to make a spell that acts as Staff of Teleportation without interupting the target unit. It will have to work while clicking the minimap aswell, just as Staff of Teleportation.
My goal is that you use the staff, select desired unit the same way as one would with staff(even through pressing on the minimap) and the unit is telported to the target immediatly.
Do you think this is possible? How would one make that happen?
EDIT: I can set a variable to an order but I cant use the order. How can I use the order in the variable?
My friend also pointed out that I could use a dummy unit that always is in the position of the unit that I wish to teleport to and on my map this would work since there are a max of 6 units to teleport to.
Last edited: