Page 1 of 1

The impossible

Posted: 15 Feb 2008, 07:22
by Frans
Is it possible to make selectable features on a map have surfaces with heightmaps, for use with deformable features?

And, is it possible to allow units to walk and/or build on a feature?

I know you can make units walk on features, and i'm sure you can do it with lua, but I am not really good with lua.

some ideas for what this could be used for...

Overhanging cliffs...

Bridges...

I really want the bridge part, i'm thinking maby of making a bridge model, and placing it on the map, and having the surface of the bridge have a heightmap, and use lua to simulate health for the bridge. when it is too damaged, it gets blown apart.

But, thats only how i think it'd be done. I have several map ideas, that could use bridges, or some similar thing.

Re: The impossible

Posted: 15 Feb 2008, 09:09
by KDR_11k
Everyone wants a bridge feature. Spring isn't designed for more than one y coordinate per (x,z) coordinate. Your only option is to alter the pathfinder and use lua MoveCtrl to move units across the bridge.

Re: The impossible

Posted: 16 Feb 2008, 08:13
by Zpock
You could maybe do it straight in LUA by trying to detect when a unit should go on the bridge to get to his movement order and then split the order up to move in front of the bridge and then use movectrl and all that.

Re: The impossible

Posted: 17 Feb 2008, 09:35
by Frans
ok, so i can use the lua movectrl commands, and such, to move units across a bridge, but how about a whole platform? in the sky? and being able to build on it?

heh, think of a map, with two frontiers, one the ground, and one maby on a cloud? just a example, but that might be a cool map!

Re: The impossible

Posted: 17 Feb 2008, 09:55
by KDR_11k
There's no difference between a bridge and a platform in the sky, you just have to intercept anything pertaining to the ground and move it to that platform instead. Sounds easy but is fucking hard. Good luck.

Re: The impossible

Posted: 17 Feb 2008, 10:43
by Frans
KDR_11k wrote:Sounds easy but is fucking hard. Good luck.
What a hell of an understatement that is, considering my current level of lua knowledge.

Re: The impossible

Posted: 20 Feb 2008, 14:23
by Zpock
The hard part is making an algorithm for detecting that the unit needs to cross the bridge.

Re: The impossible

Posted: 20 Feb 2008, 15:21
by FLOZi
Much easier to just lua a landbridge and let the pathfinder take care of it.