HI, Im stuck on getting this "Deadman's Port Zion elevator" to work with unit height. I got the animation of it where it will open & raise platform, & then close it. but when I use trigger spawn unit on top of it, it doesnt spawn at the bottom, it will spawn as if its floating in air before platform rises. But the Map Object the elevator uses clearly has a shallow space underneath it, in editor when I place a unit it will be at the bottom, but in game it will not. How do I get bottom space detect in game? Its the same elevator from the "Sc2tutorial". I even tried to spawn & preset unit height at -2.0 or whatever number but it wont spawn at bottom.
I believe the crux of your problem is that by default you cannot make a ground unit go underground.
A unit's cannot have negative height. By default a ground unit's height is relative to the ground it is standing on, so it can never clip into the ground. While it is possible to change a unit's height to be relative to the lowest point on the map, it is not done in the tutorial map and should not be necessary if you set your elevator up the same way. What this tells me is that the terrain height at the elevator must be equal to or lower than the lowest point the elevator travels to.
Now take a look at the tutorial map. Deleting the elevator shows that there is no actual terrain where the elevator is.
And looking at doodads shows that invisible platforms are actually used to determine where the normal floor is. NOTE: None of these platforms block where the elevator is.
Finally, the elevator doodad will provide its own floor collision for whatever height it is at, so any units on top will automatically be raised up during its animation.
Hopefully that is helpful in getting your own system set up.
Hi Zmilla, thx for info... if Im getting u right, then I should place an invisiable walkable platform over the elevator & have trigger set terrain height at the lowest point of that doodad? (which is -2.51) and when I send actor message to raise up the elevator the collision will apply by itself without me resetting the terrain height? Or would I also need to follow up with setting Terrain height back from point A to point B (height) during the animation for elevator raising?
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
HI, Im stuck on getting this "Deadman's Port Zion elevator" to work with unit height. I got the animation of it where it will open & raise platform, & then close it. but when I use trigger spawn unit on top of it, it doesnt spawn at the bottom, it will spawn as if its floating in air before platform rises. But the Map Object the elevator uses clearly has a shallow space underneath it, in editor when I place a unit it will be at the bottom, but in game it will not. How do I get bottom space detect in game? Its the same elevator from the "Sc2tutorial". I even tried to spawn & preset unit height at -2.0 or whatever number but it wont spawn at bottom.
@Johnsoolong: Go
I believe the crux of your problem is that by default you cannot make a ground unit go underground.
A unit's cannot have negative height. By default a ground unit's height is relative to the ground it is standing on, so it can never clip into the ground. While it is possible to change a unit's height to be relative to the lowest point on the map, it is not done in the tutorial map and should not be necessary if you set your elevator up the same way. What this tells me is that the terrain height at the elevator must be equal to or lower than the lowest point the elevator travels to.
Now take a look at the tutorial map. Deleting the elevator shows that there is no actual terrain where the elevator is.
And looking at doodads shows that invisible platforms are actually used to determine where the normal floor is. NOTE: None of these platforms block where the elevator is.
Finally, the elevator doodad will provide its own floor collision for whatever height it is at, so any units on top will automatically be raised up during its animation.
Hopefully that is helpful in getting your own system set up.
Hi Zmilla, thx for info... if Im getting u right, then I should place an invisiable walkable platform over the elevator & have trigger set terrain height at the lowest point of that doodad? (which is -2.51) and when I send actor message to raise up the elevator the collision will apply by itself without me resetting the terrain height? Or would I also need to follow up with setting Terrain height back from point A to point B (height) during the animation for elevator raising?