I didn't know that. If that is true, then indeed problem is solved far simplier.
---------- Post added at 21:48 ---------- Previous post was at 21:18 ----------
I did some tests. First spawn the building:
bld="Land_A_BuildingWIP" createvehicle (getposasl tr1);bld setdir (getdir player);
then adapted to the surface with both methods:
bld setVectorUP (surfaceNormal [(getPosATL bld) select 0,(getPosATL bld) select 1]);
bld setPos (getpos bld);
As we can see both methods give acceptable effects, but slightly different on given slope. Another vector calculating method, or something else in my code makes a difference? As this is here for precision adjustment, this may be important difference.