Open main menu

UESPWiki β

Daggerfall Mod:DFRemake/Resource - RMGet3dObjectInstance

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

DWORD RMGetObjectInstance ( DWORD ObjectValue )Edit

InputsEdit

  • ObjectValue: The object value (from the Arch3d directory) that you wish to create an instance of.

OutputsEdit

Returns the object ID of the newly created object instance.

DescriptionEdit

Use this function to create an instance of the given object (object value from the Arch3d directory). An instanced object shares much of its data with the original object but can be moved, rotated, and animated seperately.

NotesEdit

This function should never fail but will return 0 if it does. It can only fail if the NULL object does not exist (meaning an invalid object cache state).

ExampleEdit

  Local NewID as DWORD
 
  NewID = RMGetObjectInstance(456)
  Position Object NewID, 10, 30, 20