[HELP]Lua Help
[HELP]Lua Help
Within a game I have the player coordinate which are a float value, but I want to display those coordinates constantly on a cheat engine table. So is it possible to move that float value into a label constantly using a timer? And if so, how?
- Dread_Pony_Roberts
- Table Makers
- Posts: 525
- Joined: Sun Dec 09, 2018 8:46 am
- Reputation: 388
[HELP]Lua Help
You don't need lua for this, you can make a pointer to the address and cheat engine will handle the rest.
[HELP]Lua Help
I already scripted the pointers and have them, but I want to be able to display them on a cheat table constantly. So that I can see the coordinates on the same table that all the cheat toggle buttons are on.
- Dread_Pony_Roberts
- Table Makers
- Posts: 525
- Joined: Sun Dec 09, 2018 8:46 am
- Reputation: 388
[HELP]Lua Help
You mean like this?
[IMG]https://i.stack.imgur.com/UoxPC.png[/IMG]
[IMG]https://i.stack.imgur.com/UoxPC.png[/IMG]
[HELP]Lua Help
I think the mean on a trainer.
Cheat table is not the same as a trainer. And you'd be better off actually posting some of the code you have so far.
But here's some links to the CE wiki.
[URL unfurl="true"]https://wiki.cheatengine.org/index.php?title=Lua:Class:Timer[/URL]
[URL unfurl="true"]https://wiki.cheatengine.org/index.php?title=Lua:Class:Label[/URL]
Cheat table is not the same as a trainer. And you'd be better off actually posting some of the code you have so far.
But here's some links to the CE wiki.
[URL unfurl="true"]https://wiki.cheatengine.org/index.php?title=Lua:Class:Timer[/URL]
[URL unfurl="true"]https://wiki.cheatengine.org/index.php?title=Lua:Class:Label[/URL]
[HELP]Lua Help
Okay so I have these labels: CETrainer_1_CELabel13, CETrainer_1_CELabel14, and CETrainer_1_CELabel15.
What I'm trying to do is to have these labels display what each of the following pointer values are on a trainer.
The player Z cord pointer is [pPlayer44]+DC
The player X cord pointer is [pPlayer4]+0D8
The player Y cord pointer is [pPlayer42]+E0
What I'm trying to do is to have these labels display what each of the following pointer values are on a trainer.
The player Z cord pointer is [pPlayer44]+DC
The player X cord pointer is [pPlayer4]+0D8
The player Y cord pointer is [pPlayer42]+E0
-
- Expert Cheater
- Posts: 852
- Joined: Fri Oct 12, 2018 10:25 pm
- Reputation: 896
[HELP]Lua Help
Change the names accordingly, I don't know if those are correct, as they're just called CELabel and pPlayer.
[CODE=lua]if tmer == nil then
tmer = createTimer(nil, false)
end
tmer.OnTimer = function(tmer)
CETrainer1.CELabel13.Caption=readFloat("[pPlayer44]+DC")
CETrainer1.CELabel14.Caption=readFloat("[pPlayer4]+0D8")
CETrainer1.CELabel15.Caption=readFloat("[pPlayer42]+E0")
end
tmer.Interval = 100
tmer.Enabled = true[/CODE]
[CODE=lua]if tmer == nil then
tmer = createTimer(nil, false)
end
tmer.OnTimer = function(tmer)
CETrainer1.CELabel13.Caption=readFloat("[pPlayer44]+DC")
CETrainer1.CELabel14.Caption=readFloat("[pPlayer4]+0D8")
CETrainer1.CELabel15.Caption=readFloat("[pPlayer42]+E0")
end
tmer.Interval = 100
tmer.Enabled = true[/CODE]
[HELP]Lua Help
Thank you! That works. I appreciate the help.
Who is online
Users browsing this forum: No registered users