Hello I have just started working with Dark AI and I am trying to get it into FPSC. I am using the "ai add obstacle from level" command to create obstacles, but it does not seem to be working right because it is creating obstacles in random spots (instead of along walls and object picture attached) and it only works with the lowest layer.
Heres how i'm using the command
layerAdded = 0
levelContainer = 0
levelcontaineradded=0
for i = 10 to 2000 step 100
if levelcontaineradded=0
ai add container 1 : condebug=condebug+1
ai add container 2 : condebug=condebug+1
ai add container 3 : condebug=condebug+1
ai add container 4 : condebug=condebug+1
ai add container 5 : condebug=condebug+1
ai add container 6 : condebug=condebug+1
ai add container 7 : condebug=condebug+1
ai add container 8 : condebug=condebug+1
ai add container 9 : condebug=condebug+1
ai add container 10 : condebug=condebug+1
ai add container 11 : condebug=condebug+1
ai add container 12 : condebug=condebug+1
ai add container 13 : condebug=condebug+1
ai add container 14 : condebug=condebug+1
ai add container 15 : condebug=condebug+1
ai add container 16 : condebug=condebug+1
ai add container 17 : condebug=condebug+1
ai add container 18 : condebug=condebug+1
ai add container 19 : condebug=condebug+1
ai add container 20 : condebug=condebug+1
levelcontaineradded=1
endif
ai set container active levelContainer,1
ai add obstacle from level physicsuniverseobj,i,10,10
layerAdded = layerAdded + 1
levelContainer = levelContainer + 1
next i
completedLoad = 1
yes i do have the "ai complete obstacles" command in my source.
Picture attached of random placed lines