Page 1 of 1

Pawn:GuardPawn doesn't work

Posted: Mon May 07, 2018 2:38 pm
by piepie62
Hello, Subset, I'm helping the modders of this community and found an oddity in the code. I have been trying to figure out the exact structure of some of the game classes for easier usage beyond what would normally be possible with the code you have exported to the Lua namespace, and I came across an interesting realization: the methods Pawn:IsGuarding and Pawn:GuardPawn access different offsets within the Pawn structure. I'm guessing that this was an accidental oversight during a code refactor, but would it be possible for you to fix it? I know of at least one idea for a mod that would benefit from this.