I would like to know if this is possible - I have a map where each player controls a given ship. When issuing orders to move to this ship (or any order for that matter), I want the graphic waypoint line (and pointer) to always be on the same plane, or height, of the issuing unit. Is it possible to adjust the terrain dynamically (so that it always matches this unit's height) so that this is always the case?
As you can see from the example above, whenever orders are issued for the unit, it takes the point where you clicked relative to the base of the map, not the height of the unit being issued. This leads to wonky unit orders when rotating the camera around, since where you click might not be where you actually move (relative to your height).
Hello,
I would like to know if this is possible - I have a map where each player controls a given ship. When issuing orders to move to this ship (or any order for that matter), I want the graphic waypoint line (and pointer) to always be on the same plane, or height, of the issuing unit. Is it possible to adjust the terrain dynamically (so that it always matches this unit's height) so that this is always the case?
As you can see from the example above, whenever orders are issued for the unit, it takes the point where you clicked relative to the base of the map, not the height of the unit being issued. This leads to wonky unit orders when rotating the camera around, since where you click might not be where you actually move (relative to your height).
My advice would be make your own physics engine using triggers.
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
Alright so I figured out a way to do this without way-too-complicated maths and triggers (with a few hiccups I'll probably fix in the next few days):
1. I simply took a doodad that dynamically changes heights of units (in my case, I took the "Space Elevator Ramp" doodad model);
2. I attached it with an offset directly below my ship;
3. Increased the x/y scale of the model so that it extends across the entire map plane;
4. Set the opacity to 0 for the actor or model (I set it through actor messages)
I have some funny glitches happening right now...but I'm sure with a few SOps and a few tweaks to data and i'll be fine...
Lol.