Let's say I want something to happen when a console command/exec function is called, but also want the original code to be executed.
The former is easy: I can override it by placing my own exec function in the player class. However, how do I then cause it to invoke the original command I'm overwriting?
For example, say I want to override ToggleFullscreen, which is an existing console command but not available for editing in any of the script files. I could do this:
exec function ToggleFullscreen()
{
// do stuff
}
... but then it wouldn't actually toggle fullscreen. Is there a way to override the function but then invoke the original?
The former is easy: I can override it by placing my own exec function in the player class. However, how do I then cause it to invoke the original command I'm overwriting?
For example, say I want to override ToggleFullscreen, which is an existing console command but not available for editing in any of the script files. I could do this:
exec function ToggleFullscreen()
{
// do stuff
}
... but then it wouldn't actually toggle fullscreen. Is there a way to override the function but then invoke the original?