{$CLEO} // testing - get texture from .txd 0000: while true wait 0 if player.Defined(0) then 0AA7: call_function 0x731850 num_params 1 pop 1 "premier" 5@ if 5@ <> -1 then 0AB1: @txdIndexToRwTexDictionary 1 5@ 6@ if 6@ <> 0 then 0AA7: call_function 0x7F39F0 num_params 2 pop 2 "premier92interior128" 6@ 7@ if 7@ > 0 then actor.StorePos($3, 1@, 2@, 3@) 0AC7: 4@ = var 1@ offset 0AA5: call 0x707390 num_params 16 pop 16 0 0 0x3F800000 0 2.0 255 255 255 255 3.0 0.0 0.0 3.0 4@ 7@ 1 end end end end end :txdIndexToRwTexDictionary // 0@ - index 0A8D: 1@ = read_memory 0xC8800C size 4 virtual_protect 0 0A8E: 2@ = 1@ + 4 0A8D: 2@ = read_memory 2@ size 4 virtual_protect 0 005A: 2@ += 0@ 0A8D: 2@ = read_memory 2@ size 1 virtual_protect 0 if 2@ > 0 then 0A8D: 1@ = read_memory 1@ size 4 virtual_protect 0 0@ *= 12 005A: 1@ += 0@ 0A8D: 1@ = read_memory 1@ size 4 virtual_protect 0 else 1@ = 0 end 0AB2: ret 1 1@