Open main menu

UESPWiki β

Daggerfall Mod:DFRemake/DFEGetFirstDungeonObject

< Mod / Daggerfall: Daggerfall Mod: DFRemake(Redirected from Daggerfall:DFRemake/DFEGetFirstDungeonObject)

integer DFEGetFirstDungeonObject ( DWORD MemblockPtr )Edit

InputsEdit

  • MemblockPtr: The pointer to a memblock from the GET MEMBLOCK PTR command.

OutputsEdit

Returns 0 if there are no objects in the current block to iterate through or 1 on success.

DescriptionEdit

Begins iterating through all objects in the current dungeon block, storing information in the given memblock. Memblocks should be allocated with 256 bytes. See DFEGetNextDungeonObject for more information including the format of memblock data.

ExampleEdit

  Local Result as Integer

  make memblock 1, 256
  Result = DFEGetFirstDungeonObject(get memblock ptr(1))