loading multiple mesh's with one comand

Blitz3D Forums/Blitz3D Programming/loading multiple mesh's with one comand

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

ok i have some code to load a mesh to be used at verious time during the running of the application. what can i put before the actual loadmesh statment to load the files but give them different names that can later be called by mesh modifying comands?

;loading a mesh
MFolder$="Models"

Color(255,255,255)
mydir=ReadDir(Mfolder$)
Repeat
File$=NextFile$(mydir)
If file$="" Then Exit
If FileType(folder$+"\"+file$) = 2 Then
Print "Folder:" + file$
Else
Print "File:"+ file$
End If
Forever


loadmod$= Input$("Which do you want To load?")
CloseDir mydir

selobjanim=0
**what do i put here?**=LoadMesh(MFolder$ + "\" + loadmod$)