View previous topic :: View next topic |
Author |
Message |
Frouk Master Cheater Reputation: 5
Joined: 22 Jun 2021 Posts: 489 Location: mov dword ptr [Ukraine]
|
Posted: Wed Aug 04, 2021 1:55 pm Post subject: Structure information |
|
|
I founded out that i can use structures like this
Code: | CVector3D = {
X = '+0x0'
Y = '+0x4'
Z = '+0x8'
}
|
I can't use X
In address list it's just gives only non-usable address
EDIT:
Maybe i will create function that can do like this
Or Cheat Engine can do that?
|
|
Back to top |
|
|
LeFiXER Grandmaster Cheater Supreme Reputation: 20
Joined: 02 Sep 2011 Posts: 1053 Location: 0x90
|
Posted: Wed Aug 04, 2021 2:35 pm Post subject: |
|
|
This is a table (array). You access it like CVector3D[index]; however, you can assign a key and value to the table like so
Code: |
CVector3D = { 'X' = 0x0, 'Y' = 0x4, 'Z' = 0x8 }
|
Then you can access it in a way like this:
Code: |
local pX = CVector['X']
|
|
|
Back to top |
|
|
TheyCallMeTim13 Wiki Contributor Reputation: 50
Joined: 24 Feb 2017 Posts: 976 Location: Pluto
|
Posted: Wed Aug 04, 2021 4:22 pm Post subject: |
|
|
You were missing some commas, tables use commas to separate things. And you can access this as shown.
Code: |
CVector3D = {
X = '+0x0',
Y = '+0x4',
Z = '+0x8',
}
print(CVector3D.X)
print(CVector3D['X']) |
_________________
|
|
Back to top |
|
|
Frouk Master Cheater Reputation: 5
Joined: 22 Jun 2021 Posts: 489 Location: mov dword ptr [Ukraine]
|
Posted: Wed Aug 04, 2021 11:17 pm Post subject: |
|
|
thx
|
|
Back to top |
|
|
|