Working on the Skulks WIth Shotguns mod, going great so far. I'm new to lua and ns2 modding though so having some trouble with the basics.
What would you suggest to be the best method for overriding a local function?
Specifically AssignPlayerToEgg, in AlienTeam.lua.
My best solution is overriding AlienTeam:Update (which calls AssignPlayerToEgg) in a mod file, but that leads to a lot of local functions having to end up in my mod file as well. I figure I might be overlooking some basic method of achieving just a single local function override.
Thanks!
What would you suggest to be the best method for overriding a local function?
Specifically AssignPlayerToEgg, in AlienTeam.lua.
My best solution is overriding AlienTeam:Update (which calls AssignPlayerToEgg) in a mod file, but that leads to a lot of local functions having to end up in my mod file as well. I figure I might be overlooking some basic method of achieving just a single local function override.
Thanks!