I'm trying to make a missile ability that will always fly to the edge of the map. For the rest of my missiles I've been using Effect - Target effects, and setting the minimum range up to make them fly as far as I need them to, however in this case the min range will be massive (500) so they will always fly off the map, but you cannot target off the edge of a map, which it always will with this method. (a high minimum range effectively makes your mouse click always be at least X distance away from your unit no matter where you click)
That kind of worked - along with setting it to throw I had to set the Arrival Test Type to Never and the Throw Vector to -1 (with Arrival set to Adaptive, it would still despawn upon reaching the target). With all of that, when the missile reaches the target point on the map, it turns in a seemingly random direction and flies off to the edge.
The actual path changes. For example, if I shoot it straight up, the missile will stop moving in that direction and fly in a random one as soon as it reaches the target point I clicked.
I've attached the map. Oddly enough, the persistent effects on the fireball continue moving forward, however the fireball model itself seems to detach and fly in a random direction. It's really weird.
Only thing I can think of from your description is that the missile mover "throw" is reset when it "hits" a target, causing it to be flung at a default offset the game gives it. You can try to make something activate the ability again? giving it a target once again.
You should launch your missile by persistent effect rather than just target.
Something like this:
Ability -> Persistent "TARGET" -> launch missile "LAUNCH"
code for persistent will be:
HOLY SH\\
if i use source unit as launch point (which is necessary to use action actor) then all my plan explodes >.< ok now i cant get how to make simple rocket too :X
I'm trying to make a missile ability that will always fly to the edge of the map. For the rest of my missiles I've been using Effect - Target effects, and setting the minimum range up to make them fly as far as I need them to, however in this case the min range will be massive (500) so they will always fly off the map, but you cannot target off the edge of a map, which it always will with this method. (a high minimum range effectively makes your mouse click always be at least X distance away from your unit no matter where you click)
Is there a way to make this work?
If you set the missile mover to THROW they will always fly to the edge if I'm not mistaken, no matter the range.
Step 1 : Find your Missile's Mover in the Mover Tab
Step 2 : Edit Movement: Motion Phases
Step 3 : Change Driver to Throw
@Necromoni: Go
That kind of worked - along with setting it to throw I had to set the Arrival Test Type to Never and the Throw Vector to -1 (with Arrival set to Adaptive, it would still despawn upon reaching the target). With all of that, when the missile reaches the target point on the map, it turns in a seemingly random direction and flies off to the edge.
Any idea how to keep it straight?
Set arrival type to never and use a buff behaviour on the missile unit to suicide/do impact.
Having a target point/unit location validator could make it destruct on crossing the map bounds.
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
Aye, I can make it self destruct just fine, my problem is that even with the arrival type set to "never" it turns when it reaches the target point.
That is probably the one SOp (Forward Vector) SOp used by the Action actor. Or are you saying the actual path arcs?
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
The actual path changes. For example, if I shoot it straight up, the missile will stop moving in that direction and fly in a random one as soon as it reaches the target point I clicked.
I've attached the map. Oddly enough, the persistent effects on the fireball continue moving forward, however the fireball model itself seems to detach and fly in a random direction. It's really weird.
Tried fiddling around with some other settings to no avail. Any idea why the actor detaches DrSuperEvil?
Nope.
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
Only thing I can think of from your description is that the missile mover "throw" is reset when it "hits" a target, causing it to be flung at a default offset the game gives it. You can try to make something activate the ability again? giving it a target once again.
You should launch your missile by persistent effect rather than just target.
Something like this:
Ability -> Persistent "TARGET" -> launch missile "LAUNCH"
code for persistent will be:
also throw driver and etc
EDIT:
HOLY SH\\ if i use source unit as launch point (which is necessary to use action actor) then all my plan explodes >.< ok now i cant get how to make simple rocket too :X