User File #638009322498218193

Upload All User Files

#638009322498218193 - FE x,y,z

tf5.lua
98 downloads
Uploaded 10/9/2022 5:10 PM by yep2yel (see all 12)
X,Y,Z positions for Fifth Element
local XTEXT = 10
local YTEXT = 60

while true do

	POINTER = memory.read_u32_le(0x0A68AC) - 0x80000000
	
	X_AXIS = memory.read_s32_le(POINTER + 0x200)
	Y_AXIS = memory.read_s32_le(POINTER + 0x208) 
	Z_AXIS = memory.read_s32_le(POINTER + 0x204)
	
	--gui.text(XTEXT,YTEXT, "X AXIS: " ..string.format("%08X",(X_AXIS)), "white")
	gui.text(XTEXT,YTEXT, "X AXIS: " ..(X_AXIS), "white")
	gui.text(XTEXT,YTEXT+20, "Y AXIS: " ..(Y_AXIS), "white")
	gui.text(XTEXT,YTEXT+40, "Z AXIS: " ..(Z_AXIS), "white")
	
	
	--gui.text(XTEXT,YTEXT+80, "POINTER: " ..string.format("%08X",(POINTER)), "white")
	
emu.frameadvance()

end