I'm reading the guide on GS2 and near the end he or she mentions objects. This part has me lost. What exactly is happening here?
PHP Code:
temp.controlnpc = findnpc("Control-NPC"); //Creates an object references the Control-NPC
this.player_data = temp.controlnpc.player_data; //Copies data from the Control-NPC to the current NPC.
temp.controlnpc.onCreated(); //Executes the onCreated function through the Control-NPC
I can only guess what Control-NPC is. I see it listed on the server I am practicing on, but I have very limited rights so I can't open it up. I assume there is code inside, but at this point I am only guessing what this script is referencing.