Pawn:GuardPawn doesn't work

Discuss problems and suggestions related to the Into the Breach here.
piepie62
Posts: 1
Joined: Mon May 07, 2018 2:30 pm

Pawn:GuardPawn doesn't work

Postby piepie62 » Mon May 07, 2018 2:38 pm

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.