| View previous topic :: View next topic |
| Author |
Message |
laserpanda How do I cheat?
Reputation: 0
Joined: 29 Apr 2013 Posts: 8
|
Posted: Sun Jun 28, 2015 8:02 pm Post subject: Add/subtract from matched value? |
|
|
| I have a value "PlayerX", and a value matched to it, "signX" to make a sign always float above the player. Is there a way to do something like (PlayerX +1) to make it 1 unit away from the player rather than in the exact same position. Everything I try doesn't seem to work.
|
|
| Back to top |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Sun Jun 28, 2015 8:35 pm Post subject: |
|
|
With absolutely no information about what it is you are currently doing, I'm going to go ahead and say yes.
Load the value of the player's position. Add 1 to it. Load the value into the sign's position.
If you're wanting more help than that, you'll need to provide some of the code you're currently using.
|
|
| Back to top |
|
 |
laserpanda How do I cheat?
Reputation: 0
Joined: 29 Apr 2013 Posts: 8
|
Posted: Sun Jun 28, 2015 8:49 pm Post subject: |
|
|
| Zanzer wrote: | With absolutely no information about what it is you are currently doing, I'm going to go ahead and say yes.
Load the value of the player's position. Add 1 to it. Load the value into the sign's position.
If you're wanting more help than that, you'll need to provide some of the code you're currently using. |
No code at the moment really.
Just using this method and putting the description Name in the value field.
| Code: | | http://forum.cheatengine.org/viewtopic.php?t=530003&start=0&postdays=0&postorder=asc&highlight= |
|
|
| Back to top |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Sun Jun 28, 2015 9:14 pm Post subject: |
|
|
| Oh, not sure if that little CE feature supports formulas. Doesn't appear to.
|
|
| Back to top |
|
 |
laserpanda How do I cheat?
Reputation: 0
Joined: 29 Apr 2013 Posts: 8
|
Posted: Sun Jun 28, 2015 10:07 pm Post subject: |
|
|
| Zanzer wrote: | | Oh, not sure if that little CE feature supports formulas. Doesn't appear to. |
Is there a another relatively simple way to do it? I haven't really looked into the coding side of Cheat Engine.
|
|
| Back to top |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Mon Jun 29, 2015 6:34 am Post subject: |
|
|
Simple? Nope.
You would need to find out what instruction is constantly accessing player location.
Inject your script there to pull the location and save it into a custom variable.
Then find out what instruction is constantly accessing the sign location.
Inject another script there to update the location with the saved value.
Of course, the game may be using that same instruction for various unit and object locations.
So you'd likely also need to filter your code to only affect the player and sign you want.
|
|
| Back to top |
|
 |
|