I have a pointer that I add to my cheat but it crashes the game and doesn't work, how to use this type of function?
how to add bankfield in mod menu?
I already tried to use get_MovesLeft and set_MovesLeft(int value) linking the two but it didn't work.
I did it using private int <Moves Left>k__BackingField; in game guardian and it worked, but how to assemble this script in mod menu
how to add bankfield in mod menu?
C++:
[Token(Token = "0x40052CA")]
[FieldOffset(Offset = "0x20")]
[Attribute(Name = "CompilerGeneratedAttribute", RVA = "0x5EE0E4", Offset = "0x5EE0E4")]
private int <MovesLeft>k__BackingField;
I already tried to use get_MovesLeft and set_MovesLeft(int value) linking the two but it didn't work.
I did it using private int <Moves Left>k__BackingField; in game guardian and it worked, but how to assemble this script in mod menu
C++:
void (*orig_Update)(void *instance);
void Update(void *instance)
{
if(instance != NULL)
{
*(int*)((uint64_t)instance + 0x20) = 99; // Declare a variable to isEnemy to access it
}
orig_Update(instance);
}