Been messing around with trying to get some sort of multi-plane environment going.
In theory it works, regions are used for collision, so pathing works.
Points are used for a kind of pseudo height map on the upper plane(linear interpolation between points), though i don't expect it to work on non-planar surfaces.
The major issue is unit collision, as there is no way to change collision flags on a unit. Was thinking duplicate the catalog entry at runtime and modify that then create a replacement unit but seems even that is impossible, can only edit the actual entry so all units of that type would be affected by the change. So even that wont work.
So if anyone has any suggestions on how to deal with the collision?
im trying to find something or think of something to do what youre sying. no luck yet. the behavior modification field had a 'plane' and 'ground' value under the 'movement' tab. it didnt seem to effect what youre talking about though, is that map just a small demo? if so mind posting it so i can see how youre doing it exactly?
@kozm0naut: One region encompasses the area that should be evaluated as multi-plane. When a unit enters this region it’s cliff level is checked and either. a) Nothing happends if it’s on the lower plane. b) The unit is on the upper plane and ignores terrain height (SetUnitState), and receives a new height from the point set.
Each cliff level has a region that defines the collision, touching this region is considered a collision and the unit is denied movement. This is the same behavior as the normal collision has, the path finding does try to take the shortest path however, and in this case takes the wrong choice the unit is closer to the bridge than the ramp.
Those just define which planes a unit can be attacked on (Gravity Beam works by changing this to Air).
I’ll post the map later, already trying a different approach.
bump again, I'm pretty sure I understand how this works but I'm having trouble getting started. Honestly, I don't even know how to get the marine on the bridge (but I think it involves forcing his cliff level while pathing over the cliff under the bridge?)
I haven't played with any scripting yet because I like to make melee maps and I was wondering if you think I can leave out the multi-plane to get a similar bridge effect that is still melee compliant? What I mean is, I don't care about pathing underneath; is it scripting or a region property that keeps the marine on the bridge from "falling down" to the cliff level below?
If it's just a region, maybe there are all kinds of cool "bridges" we can make in melee maps, too! Either way, I think a lot of RPG mappers are drooling over a way to increase the complexity of their spaces with multi-plane environments.