I am currently having a problem with a pointer.
I need to call a function that is supposed to be called like this:
myVariable = pControllerScript->GetScriptB()-GetScriptC()->GiveMeMyData();
the ControllerScript is a Avatar class and also the script I am trying to call GiveMeMyData() from
The problem is that I cant seem to set pControllerScript so that it is an actual pointer to the Avatar class.
The code throws an exception at GetScriptB() and it seems to be because pControllerScript is a nullpointer.
Does anyone know how I am supposed to set pControllerScript to an actual pointer?
Sorry if this is noobish, i just find this one thing so confusing