when i execute, i get an error at PositionEntity, and it tells me that m\mesh doesn't exist. i'm stumped! when i "Print meshfile", it looks right, quotes and all.
here is my code
propfile=ReadFile("zone.txt")
r=ReadLine(propfile)
i = 1
While i < r
m.model=New model
ReadLine(propfile)
meshfile$ = ReadLine(propfile)
m\mesh=LoadMesh(meshfile)
meshx=ReadLine(propfile)
meshy=ReadLine(propfile)
meshz=ReadLine(propfile)
ReadLine(propfile)
ReadLine(propfile)
ReadLine(propfile)
PositionEntity m\mesh,meshx,meshy,meshz
Print loaded
i=i+1
Wend
CloseFile("zone.txt")
here's the zone.txt file contents:
4
"Props\WoodenTower_01\BUILD_TowerWood_01.b3d"
2700.0
411.0
3185.0
0.0
0.0
0.0
"Props\SmallOldRoundHouse\BUILD_Sml_RoundHouse_01.b3d"
2854.0
384.0
3047.0
0.0
0.0
-1.0
"Props\SmallOldRoundHouse\BUILD_Sml_RoundHouse_01.b3d"
431.0
533.0
2181.0
-1.0
-1.0
-1.0
"Props\TrollDwelling_01\BUILD_TrollDwell_01.b3d"
1724.0
450.0
2117.0
0.0
-132.0
0.0
|