Hello everyone,
I'm in the process of creating a map where I have a portion of the map flooded. In regular SC2 maps, units can simply
"walk on the seafloor," if you will, to move through the flooded areas.
On my map, I have custom models who have animations built in for swimming, however its a matter of getting them to
emote the swimming animations when they're in flooded areas, and revert back to walking animations when they're on land.
Does anyone know how to do this? I'm completely at a loss, and any information or a point in the right direction would be greatly appreciated.
Thanks. :)
The best approach I think would be to have something that checks the height of a unit and see if it's below the water level. I don't know of anything in the data editor, though, and although there is a trigger solution, it would be running all the time for every unit on the map, and that would quickly become unwieldly.
The next best thing is to put regions everywhere there is water and do "Unit Enters/Exits Region" triggers to change the animation.
Hey, saw this is your first post. Welcome to sc2mapster! I've got some newbie level tutorials in my signature below, and if you have any questions let me know with a PM and I'd be glad to help you out.
On to the actual question....I'd say your two main options are to check over a periodic time for unit height and do something to change the model for all of them. Or you could do something where you place regions over the water and use unit enters/leave regions. As for the animations..I remember in wc3 you could make abilities and buffs add animation 'tags' like 'alternate'. So if you had the tag 'alternate' for a morph ability, all of his animations would add the word alternate in front. So he had alternate run, alternate stand, etc....Perhaps there is a way to do this in sc2? I'd recommend checking into actors (in the data editor). Thats probably where you would find it. Just take whatever unit you want to swim. Then you would go to the actors tab of the data editor and find its actor. (It should have the same name as the unit). If your unit only has 1 'swim' animation you could simply just send an actor message to the unit via the trigger editor using a basic play animation command. This would not work though if you have, say, a swim idle and a swim move animation... I'd have to think about this a lot more, actors are not my area of expertise.
Rollback Post to RevisionRollBack
Feel free to Send me a PM if you have any questions/concerns!
Thanks for the information guys, I will probably use the 'region' method as I only have 3 units out of 12 that will emote swim when they're in the water.
Thanks a bunch. :)
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hello everyone, I'm in the process of creating a map where I have a portion of the map flooded. In regular SC2 maps, units can simply "walk on the seafloor," if you will, to move through the flooded areas. On my map, I have custom models who have animations built in for swimming, however its a matter of getting them to emote the swimming animations when they're in flooded areas, and revert back to walking animations when they're on land.
Does anyone know how to do this? I'm completely at a loss, and any information or a point in the right direction would be greatly appreciated. Thanks. :)
@Garrawr16: Go
The best approach I think would be to have something that checks the height of a unit and see if it's below the water level. I don't know of anything in the data editor, though, and although there is a trigger solution, it would be running all the time for every unit on the map, and that would quickly become unwieldly.
The next best thing is to put regions everywhere there is water and do "Unit Enters/Exits Region" triggers to change the animation.
Hey, saw this is your first post. Welcome to sc2mapster! I've got some newbie level tutorials in my signature below, and if you have any questions let me know with a PM and I'd be glad to help you out.
On to the actual question....I'd say your two main options are to check over a periodic time for unit height and do something to change the model for all of them. Or you could do something where you place regions over the water and use unit enters/leave regions. As for the animations..I remember in wc3 you could make abilities and buffs add animation 'tags' like 'alternate'. So if you had the tag 'alternate' for a morph ability, all of his animations would add the word alternate in front. So he had alternate run, alternate stand, etc....Perhaps there is a way to do this in sc2? I'd recommend checking into actors (in the data editor). Thats probably where you would find it. Just take whatever unit you want to swim. Then you would go to the actors tab of the data editor and find its actor. (It should have the same name as the unit). If your unit only has 1 'swim' animation you could simply just send an actor message to the unit via the trigger editor using a basic play animation command. This would not work though if you have, say, a swim idle and a swim move animation... I'd have to think about this a lot more, actors are not my area of expertise.
Thanks for the welcoming. :P
Thanks for the information guys, I will probably use the 'region' method as I only have 3 units out of 12 that will emote swim when they're in the water. Thanks a bunch. :)