game.addModel
Adds models to the game's resources.
Prototype
bOk = game.addModel ( hGame, hFile|sModelName )
Description
Adds models to the game module's resources tab. Only models that you plane to runtime-create have to be listed here, not the ones that are placed in scenes using the visual editor.
Parameters
hGame - valid Game handle
hFile|sModelName - valid file handle OR name of the model resource
Return values
bOk - true on success
Sample
if ( hGame ) then for i = 1, #tFiles do if ( project.getFileType ( tFiles[i] ) == project.kFileTypeModel ) then game.addModel ( hGame, tFiles[i] ) end end end
Available since ShiVa 2.0