hey i have a create unit ability and i was wondering if there was a way to make the unit move to a certain place/caster i try issue order but that just moves it to the bottom left of the map... thanks in advance
issue order (move or attack) targeting the point you want it to move to. If this doesn't work then your doing it wrong (or targeting the bottom left of map)
Example: move targeting point(location of unit(caster unit here))
issue order (move or attack) targeting the point you want it to move to. If this doesn't work then your doing it wrong (or targeting the bottom left of map)
Example: move targeting point(location of unit(caster unit here))
It implements a behavior that periodically issues orders to move to random locations around the unit. It could serve as a guide to what you need. Your issue order effect probably needs the fields:
Ability : Move
Target - Target+ : Target Point
Unit - Unit+ : Source
Where are you trying to move it to though? Explain a little more about your ability. If you want to create a unit and issue it to move back to the caster that's easy, but if you want to create a unit and issue an order to move to a location close to it, it's a little harder and I'd suggest the method in the above link, since you can use the behavior to attach to the unit, then use the persistent based off that to give move orders relative to the unit location.
sdragoon7 that didnt help plus ive already done that tutorial so yeah...
umm ok this is my ability i have a queen create 8 hyrdalisk(burrowed) in a circle around the queen then they un-burrow and have a 20 second time life i want them to move towards the queen after unburrowing
The 'target' field of the issue order effect is where you're issuing the order to, so if the queen is the caster and you set the 'target' to 'caster' that should be an order to move to the queen. The suggestion from the other guy was clearly trigger syntax, not data editor, so that won't help you (unless you want to do it via triggers.)
How much do you have working right now? Which part are you stuck on? Do you already get them to spawn in the circle and then unburrowed, but just can't get them to move to the caster once unburrowed?
I also must admit, I'm not sure what happens if you run an 'issue order' effect on a unit that already has an order, whether it over-rides or queue's. If it over-rides, it probably gets ignored if you run it while the hydra is unburrowing...?
Caster is the caster for the entire effect chain. Source is the persistent, or unit the behavior is on, etc. If that persistent is created by the queen, then the queen is the caster, and you'll get what you want.
You should be able to make an issue order effect that has ability as Move, Unit+ as 'target' (ie the unit being issued the order is the target of the effect) and Target+ as 'caster' (ie the target/location the ability is ordered with is the caster) you should get what you want. Just apply that effect as the spawn effect on the create unit effect, and test that. If you wanted a delay between spawning the unit and issuing the (perhaps to give time to unburrow) you could apply a behavior who's expire effect is that issue order, and just set the behavior duration to however long you want the wait to be. Then use an apply behavior when the unit is spawned.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
hey i have a create unit ability and i was wondering if there was a way to make the unit move to a certain place/caster i try issue order but that just moves it to the bottom left of the map... thanks in advance
Is the issue order on the create ability or the created units?
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
its on effect - spwan
bump?
issue order (move or attack) targeting the point you want it to move to. If this doesn't work then your doing it wrong (or targeting the bottom left of map)
Example: move targeting point(location of unit(caster unit here))
ok this is the thing i dont know how to do that
Look at this tutorial:
http://forums.sc2mapster.com/resources/tutorials/8927-data-panic-and-berserk-unit-states-beginner-difficulty/
It implements a behavior that periodically issues orders to move to random locations around the unit. It could serve as a guide to what you need. Your issue order effect probably needs the fields:
Ability : Move Target - Target+ : Target Point Unit - Unit+ : Source
Where are you trying to move it to though? Explain a little more about your ability. If you want to create a unit and issue it to move back to the caster that's easy, but if you want to create a unit and issue an order to move to a location close to it, it's a little harder and I'd suggest the method in the above link, since you can use the behavior to attach to the unit, then use the persistent based off that to give move orders relative to the unit location.
sdragoon7 that didnt help plus ive already done that tutorial so yeah...
umm ok this is my ability i have a queen create 8 hyrdalisk(burrowed) in a circle around the queen then they un-burrow and have a 20 second time life i want them to move towards the queen after unburrowing
@aczchef: Go
The 'target' field of the issue order effect is where you're issuing the order to, so if the queen is the caster and you set the 'target' to 'caster' that should be an order to move to the queen. The suggestion from the other guy was clearly trigger syntax, not data editor, so that won't help you (unless you want to do it via triggers.)
How much do you have working right now? Which part are you stuck on? Do you already get them to spawn in the circle and then unburrowed, but just can't get them to move to the caster once unburrowed?
I also must admit, I'm not sure what happens if you run an 'issue order' effect on a unit that already has an order, whether it over-rides or queue's. If it over-rides, it probably gets ignored if you run it while the hydra is unburrowing...?
@sdragoon7: Go
yes i will use a persistent to issue order but i dont think caster will work it might though because the ability is being applied from a persistent
@aczchef: Go
Caster is the caster for the entire effect chain. Source is the persistent, or unit the behavior is on, etc. If that persistent is created by the queen, then the queen is the caster, and you'll get what you want.
You should be able to make an issue order effect that has ability as Move, Unit+ as 'target' (ie the unit being issued the order is the target of the effect) and Target+ as 'caster' (ie the target/location the ability is ordered with is the caster) you should get what you want. Just apply that effect as the spawn effect on the create unit effect, and test that. If you wanted a delay between spawning the unit and issuing the (perhaps to give time to unburrow) you could apply a behavior who's expire effect is that issue order, and just set the behavior duration to however long you want the wait to be. Then use an apply behavior when the unit is spawned.