I am trying to make Aimbot for one online game , but problem is it seems like I am not experienced enough.Soo I tired to take code of someone else and customize it ,but It had alot of erros ,I managed to fix all of them myself but this one I couldnt.
Error happens at Vector3 aimAngles = aimAnglesTo(localPlayer, entity.getBonePosition(boneId));
It has something to do with Pointers but I dont know for real soo thats why I am asking for help.
Why do you think it has something to do with pointers?
We'd need to know far more about the code than you've shown us. In particular:
- which reference is that error message talking about? The error message will be unambiguous about this.
- What's the signature of aimAnglesTo()?
- How is BaseEntity.getBonePosition() defined? In particular, what is it returning?
If I had to guess, based on the limited information you've decided to give us, my guess would be that BaseEntity.getBonePosition() is returning something that can't be used to initialise a reference. It's probably returning something by value, which means you're trying to take a reference to an anonymous temporary object.
Do you understand why you can't take a reference to an anonoymous temporary object? If not, then I strongly recommend you read up on references, to understand them better. They're an important part of C++.
@MikeBoy I know they are important and thanks I will definitely learn about them than I will continue working on this.
@JLBorges Thanks alot :)
@salem c , oh I am playing this game fair for 15years and I dont think I will cheat in it ,I will just try to learn something ,and I think this will be good example since here I can check how does it work in-game.