Open main menu

UESPWiki β

Daggerfall Mod:DFRemake/Resource - RMGet3dObject

< Mod / Daggerfall: Daggerfall Mod: DFRemake(Redirected from Daggerfall:DFRemake/Resource - RMGet3dObject)

integer RMGetObject ( DWORD ObjectValue )Edit

InputsEdit

  • ObjectValue: The object value (from the Arch3d directory) that you wish to load/access.

OutputsEdit

Returns 1 on success and the global RMObjects() list is set to the given object. On failure 0 is returned and the RMObjects() list is set to the NULL object.

DescriptionEdit

This function accesses, or loads, the specified object, setting the RMObjects() list to the given object. If the object currently exists in the cache, it is merely accessed. If it doesn't exist, the object is loaded and added to the cache. If the object cannot be loaded the RMObjects() list is set to the NULL object to ensure a valid object is available.

New objects are hidden and moved far from the origin (negative direction). The intent is to never use the copy of the object in the cache, but instead to make instances and copies of the object and place them into the world as needed.

NotesEdit

Need rough access times...

ExampleEdit

  Local Result as integer

  Result = RMGetObject(456)
  if (not Result) then End

  print "Object 456 found using ID #", RMObjects().ObjectID