U
utunnels
Guest
https://www.dropbox.com/s/xbygx4jbcrfa5o1/OpeBOR-win-latest.7z
This feature allow base altitude to be changed. Basically this is used to create slight ground transformation. If you want to create a stair, you need to combine it with a wall or platform. Although current AI mostly doesn't know what is a "stairway", they may not behave properly.
An example (level.c) that creates a slope.
A wall is required to the right if you want to block the path from that direction.
wall 273 256 0 0 3 3 26 89
[attachment deleted by admin]
This feature allow base altitude to be changed. Basically this is used to create slight ground transformation. If you want to create a stair, you need to combine it with a wall or platform. Although current AI mostly doesn't know what is a "stairway", they may not behave properly.
An example (level.c) that creates a slope.
Code:
void main()
{
int x, z;
float delta, a;
changelevelproperty("basemap", 0, "x", 132);
changelevelproperty("basemap", 0, "xsize", 144);
changelevelproperty("basemap", 0, "z", 230);
changelevelproperty("basemap", 0, "zsize", 26);
delta = 89.0/144.0;
for(x=0; x<144; x++)
{
a = x*delta;
if(x+132>270) a = 89; // connect with the wall more smoothly
for(z=0; z<26; z++)
{
changelevelproperty("basemap", 0, "map", x,z, a);
}
}
}
A wall is required to the right if you want to block the path from that direction.
wall 273 256 0 0 3 3 26 89
[attachment deleted by admin]