Using Start Match from GameModeBase derived class
I've created a game mode which is derived from 'Game Mode Base' and I want to use the Match nodes from the parent 'Game Mode' class (I.e. Start Match, End Match etc). The problem is, Start Match requires a reference to a 'Game Mode Object' so it won't accept a reference to 'self', but if I try to cast my game mode to the parent 'Game Mode' class it fails. So I can't figure out how to set the target for Start Match/End Match.
Any help would be appreciated.
asked Jun 11 '18 at 09:34 PM in Blueprint Scripting
If you want to use a function that resides in GameMode you need to inherit from GameMode instead of GameModeBase. GameModeBase doesn't have a function called StartMatch, it belongs to GameMode like the StartMatch node describes "Target is Game Mode". Your cast always fails because self (GameModeBase) does not inherit from GameMode.
answered Jun 11 '18 at 10:45 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here