Hello! can you help me!
i used this to insert object, but i think this codes are for group object only, How can I insert a new object? Or insert a new Character/Player?. Can you help help for the codes for inserting .obj file 1 by 1??? pleassseeee. thank you
objmax=50
for obj=1 to objmax
obj$="mesh"+str(obj)+".obj"
LoadObject(obj,obj$,0)
if obj>=1 and obj<=7
tex$="mesh"+str(obj)+"-1.jpg"
else
tex$="mesh"+str(obj)+"-0.jpg"
endif
texname$=left(tex$,len(tex$)-4)
lm$=right(texname$,1)
if lm$="-" then lm$="0"
teximg=LoadImage(tex$)
SetImageWrapU(teximg,1)
SetImageWrapV(teximg,1)
SetObjectImage(obj,teximg,0)
SetObjectImage(obj,lm[val(lm$)],1)
SetObjectShader(obj,shaderindex)
`
rem Progress status
perc#=obj : perc#=perc#/objmax : perc=perc#*100
SetTextString(1,"BiosTech - "+str(perc)+"%") : Sync()
next obj