Quantcast
Channel: Recent Discussions — Unknown Worlds Forums
Viewing all articles
Browse latest Browse all 42799

Best practice for overriding a local function

$
0
0
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!

Viewing all articles
Browse latest Browse all 42799

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>