binana/cheatengine/load_unit_target.lua

6 lines
No EOL
162 B
Lua

local addr, typ = GetCGObjectAddr(readQword(0x00bd07b0)) -- target guid
if addr then
if typ == "unit" then
loadStructToTable(CGUnit, addr)
end
end