Adding Function to PlayerPawn

  • Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

MecaNitroPenguin

Errrr...
Dec 24, 2001
44
0
0
Visit site
This isn't as easy as it sounds. I don't want to have to recompile the package playerpawn is in I want to create a new package that adds functions to the playerpawn class. Is this possible? If so how?
 

MecaNitroPenguin

Errrr...
Dec 24, 2001
44
0
0
Visit site
I read lots of documentation and I did think of subclassing but if I subclassed TMale1 and the player was a TMale2 they could not use the new functions. Is that the only way?
 

2COOL4-U

New Member
Mar 17, 2001
505
0
0
37
dot NL
2cool.free.fr
Two options

Subclass TMale1, TMale2, TFemale1, TFemale2, TBoss

Or
Code:
TournamentPlayer
|- MyTPClass(Contains your extra's);
    |- MyTMaleClass(Contains TournamentMale code)
    |  |- MyTMale1Class(Contains TMale1 code)
    |  |- MyTMale2Class(Contains TMale2 code)
    |  |- MyTBossClass(contains TBoss code)
    |- MyTFemaleClass(Contains TournamentFemale code)
       |- MyTFemale1Class(Contains TFemale1 code)
       |- MyTFemale2Class(Contains TFemale2 code)
If you use the second way do not copy the #exec's just the functions and defaultproperties