Data Realms Fan Forums http://45.55.195.193/ |
|
Having 2 functions in one actor? http://45.55.195.193/viewtopic.php?f=73&t=14873 |
Page 1 of 1 |
Author: | Roy-G-Biv [ Fri May 22, 2009 9:31 pm ] |
Post subject: | Having 2 functions in one actor? |
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? |
Author: | Daman [ Fri May 22, 2009 9:37 pm ] |
Post subject: | 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/2026 It'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. |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |