Re: Having 2 functions in one actor?
Roy-G-Biv wrote:
How would you go about doing this?
Say I want to use Grif's teleporting code and Erahgon's Telekenesis at the same time.
How would you go about doing that?
Copy and paste? Or you could be organized and make them their own functions, and simply call the function from update.
Here's an example I did using luaguns' vortex. The first two functions are actually separated into a base file, and vortex.lua just has
dofile("luaguns.rte/Guns/vortbase.lua")
at the top.
http://luabin.foszor.com/2026It's just organization. It'd be nice if people did this, so their base files could be included in other mods etc rather than snipping code and being sloppy.