I'm trying to create a mover that will make a custom unit move pretty much like a snake, swinging left and right instead of going in a straight line from point A to B. I have tried making a mover from scratch, tried to copy the zig-zag missile mover from the advanced movers tutorial, but none of them worked for some reason. I always ended up with my unit warping out of the map bounds (bottom-left corner) and I'm unable to move it. Any chance someone already managed to do a "drunken marine" mover or something? I even tried to change my unit type to a projectile, the problem remains. Any idea how we could do that?
Ooooh, clever! Never thought of that, thanks, I'll give it a try. Can I make it so that the force intensity is linked to the speed of the unit? I know for sure you can have effects work only when the unit is actually moving at speed X (I used it in a validator for an AoE once), but I'm not sure you can change the amplitude of a force effect according to the current speed of a unit. I'll probably need another periodic effect to check either the distance to the destination point, or the current speed, right?
Yup, there is the Switch effect and a validator for unit speed. Just have different branches with different amplitudes of force dependent on the speed.
Rollback Post to RevisionRollBack
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
I'm trying to create a mover that will make a custom unit move pretty much like a snake, swinging left and right instead of going in a straight line from point A to B. I have tried making a mover from scratch, tried to copy the zig-zag missile mover from the advanced movers tutorial, but none of them worked for some reason. I always ended up with my unit warping out of the map bounds (bottom-left corner) and I'm unable to move it. Any chance someone already managed to do a "drunken marine" mover or something? I even tried to change my unit type to a projectile, the problem remains. Any idea how we could do that?
0:08 I have no idea how to do it with data thought :(
I just used sin function to do this. Rest is up to you (that is if you wana use triggers) :/
Problem is missile movers need a launch and impact location. Try using periodic forec effects from offsets.
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
Ooooh, clever! Never thought of that, thanks, I'll give it a try. Can I make it so that the force intensity is linked to the speed of the unit? I know for sure you can have effects work only when the unit is actually moving at speed X (I used it in a validator for an AoE once), but I'm not sure you can change the amplitude of a force effect according to the current speed of a unit. I'll probably need another periodic effect to check either the distance to the destination point, or the current speed, right?
Yup, there is the Switch effect and a validator for unit speed. Just have different branches with different amplitudes of force dependent on the speed.
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