Yeah, to give a good example that I actually forgeted up with earlier, GameConnection::autoAdminCheck.
This is a good function to package for when the client joins, I use it all the time. But if your code depends on if they're admin or not, you need to have it go through it's normal code first to make them admin. But, the function needs to return something. So you set the return of the parent to a variable and return the variable.
Another example is fxDTSBrick::Plant. It returns an error # for if it can plant or not. You need to return this number or it'll break everything. But, if your code depends on whether or not the brick was planted, you need to access this so you can't stick it at the end. Set it to a variable, return the variable later.
What does it do if you use parents out of a package?
I have never really tried it.
Nothing. It just won't work, or it'll syntax error.Not true.
For example, calling Parent::onFire inside GunImage::onFire outside of a package will call WeaponImage::onFire
However, the parent class needs to exist and have that function otherwise it'll complain about the function not being found. If it's not a class-based function such as serverCmdLight, then calling parent will just say there's no function.