Blockland Forums > Modification Help
How do you client-sidedly...?
<< < (3/3)
jes00:

--- Quote from: MegaScientifical on February 05, 2012, 04:02:10 PM ---function playGui::onWake(%this) {

That's what I use, at least in Age of Time. (So I could auto-login.) Less useful, doesn't directly say you spawned, but it happens when you begin to see so...

--- End quote ---
Can you parent onWake?
MegaScientifical:
Yes, you can. Although it's not completely useful here, it might be an alternative if any problems are found.
CityRPG:

--- Quote from: jes00 on February 05, 2012, 04:21:48 PM ---Can you parent onWake?

--- End quote ---
There's no default GuiControl::onWake function so it'll give console spam every time you open a GUI that calls a parent, but considering that these functions should be defined on the base level anyways there's no reason not to. Even Ephialtes refuses to fix the TCPObject::onDisconnect console spam because it should work in a specific, proper way and it does not.
Chrono:

--- Quote from: CityRPG on February 05, 2012, 04:27:21 PM ---There's no default GuiControl::onWake function so it'll give console spam every time you open a GUI that calls a parent, but considering that these functions should be defined on the base level anyways there's no reason not to. Even Ephialtes refuses to fix the TCPObject::onDisconnect console spam because it should work in a specific, proper way and it does not.

--- End quote ---
He probably means in a package.
CityRPG:

--- Quote from: Chrono on February 05, 2012, 04:28:11 PM ---He probably means in a package.

--- End quote ---
oh.

If you ever, for any reason, are overwriting a default function that you did not create on an object you did not write, you must package it, you must call the parent (unless you're purposefully defusing the default functionality), and you should return a value if the original function does.
Navigation
Message Index
Previous page

Go to full version