Do you guys know if there is any way to replicate 'sliding' in Starcraft 2? Like - I enter a certain region, and I can't slow down from a set movement speed, I can only choose my direction?
You can make him instantly move every 0.5 seconds in preserved direction (using cos and sin to get the direction for moving). Then you can adjust the angle with mouse clicks, by registrating where the click was made, and then changing the angle of movement by a portion of a new direction.
Have you tried setting your unit's deceleration to 0? I'm not sure it will work, but if you want to make it using Data, I'd probably try that first as zjat suggested. I think setting it to 0 will not work alone though, because I guess when the unit reaches its destination it stops anyway (ie. it won't keep moving beyond the target waypoint, no matter what, because it doesn't know where to go next). I suppose if you want the unit to keep moving beyond the targeted point, you need to assign a waypoint further, so that the unit knows where it has to go. I remember trying to do that with my sand worm, I wanted it to keep moving endlessly in front of him as soon as it is spawned... It failed, I was unable to figure how to do it (without triggers I mean, because it's lame IMHO). If you succeed, let us know. Maybe using a dummy could work, but I'm not sure exactly how they work, I haven't tried yet.
@ZealNaga: Go
I would definitely say use a trigger or something if the previous can't be used by itself. (I'm not good with triggers and barely useful with data)
But setting a waypoint from front of the unit (where ever it is facing) will keep it moving until it hits something.
Using some trigger that only triggers if the unit has no actions given might work, can't say how though.
I'd like to replicate the feeling of ice - like in the custom map 'Ice escape' from WC3. You need to slide through obstacles, and try avoiding the snow - else you'll die. It basically needs to stop just as soon as it exits the 'ice region'
Do you guys know if there is any way to replicate 'sliding' in Starcraft 2? Like - I enter a certain region, and I can't slow down from a set movement speed, I can only choose my direction?
You can make him instantly move every 0.5 seconds in preserved direction (using cos and sin to get the direction for moving). Then you can adjust the angle with mouse clicks, by registrating where the click was made, and then changing the angle of movement by a portion of a new direction.
Hope it's... understandable :D
You could possibly create an aura/region in which units cannot decelerate. Not sure if this would work though, just some think-craft.
Have you tried setting your unit's deceleration to 0? I'm not sure it will work, but if you want to make it using Data, I'd probably try that first as zjat suggested. I think setting it to 0 will not work alone though, because I guess when the unit reaches its destination it stops anyway (ie. it won't keep moving beyond the target waypoint, no matter what, because it doesn't know where to go next). I suppose if you want the unit to keep moving beyond the targeted point, you need to assign a waypoint further, so that the unit knows where it has to go. I remember trying to do that with my sand worm, I wanted it to keep moving endlessly in front of him as soon as it is spawned... It failed, I was unable to figure how to do it (without triggers I mean, because it's lame IMHO). If you succeed, let us know. Maybe using a dummy could work, but I'm not sure exactly how they work, I haven't tried yet.
@ZealNaga: Go I would definitely say use a trigger or something if the previous can't be used by itself. (I'm not good with triggers and barely useful with data) But setting a waypoint from front of the unit (where ever it is facing) will keep it moving until it hits something. Using some trigger that only triggers if the unit has no actions given might work, can't say how though.
I'd like to replicate the feeling of ice - like in the custom map 'Ice escape' from WC3. You need to slide through obstacles, and try avoiding the snow - else you'll die. It basically needs to stop just as soon as it exits the 'ice region'
I don't get that Dwarfius btw :D
Use a rear force effect or do the 0 deceleration option already mentioned.
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
Hey Neon, I've done the sliding via triggers, I can send you the map or post the trigger here, if needed.