Daggerfall Mod:DFRemake/Resource - RMGetFreeMeshID
< Mod / Daggerfall: Daggerfall Mod: DFRemake(Redirected from Daggerfall:DFRemake/Resource - RMGetFreeMeshID)DWORD RMGetFreeMeshID ( )Edit
InputsEdit
None
OutputsEdit
Returns the next available mesh ID. The ID is guaranteed to be valid and not currently in use.
DescriptionEdit
Use this function to obtain a free mesh ID used for mesh creation.
NotesEdit
The only way this function can fail to return a valid mesh ID is if all IDs are currently in use. Since mesh IDs range from 1000 to 1 million, this is unlikely to occur. Mesh IDs returned by this function start at 1000 leaving the lower IDs available for special purposes.
ExampleEdit
Local NewID as DWORD NewID = RMGetFreeMeshID() Load Mesh "somefile.x", NewID