Data Realms Fan Forums http://45.55.195.193/ |
|
Is This Possible? http://45.55.195.193/viewtopic.php?f=73&t=18988 |
Page 1 of 1 |
Author: | Laraso [ Tue Jun 15, 2010 3:32 pm ] |
Post subject: | Is This Possible? |
Is it possible to have more than one function Create/Update/Destroy(self)? I need to know for something I'm making. |
Author: | CaveCricket48 [ Tue Jun 15, 2010 4:12 pm ] |
Post subject: | Re: Is This Possible? |
Probably not, but it's pointless to have copies of the same function in one script. |
Author: | Grif [ Tue Jun 15, 2010 4:18 pm ] |
Post subject: | Re: Is This Possible? |
Not really. There's also absolutely no reason to ever need to. If you want to differentiate between, say, two actors running the same script, just add a self.PresetName == check. Or, if you just need to do a specific piece of code, make an external function and reference it inside your Create/Update/Destroy. |
Author: | Laraso [ Wed Jun 16, 2010 2:40 am ] |
Post subject: | Re: Is This Possible? |
Actually I needed to know cause I was making a batch file to easily make .lua's, and the way I have it set up right now each time I add something new it adds a completely new function Create/Update/Destroy(self). Well, I guess that makes this batch useless now. |
Author: | Daman [ Thu Jun 17, 2010 3:33 am ] |
Post subject: | Re: Is This Possible? |
Laraso wrote: Actually I needed to know cause I was making a batch file to easily make .lua's, and the way I have it set up right now each time I add something new it adds a completely new function Create/Update/Destroy(self). Well, I guess that makes this batch useless now. The entire point of lua is to be able to customize anything you want in the game. Why would you limit yourself/others using a batch file/premade program? |
Author: | Laraso [ Thu Jun 17, 2010 9:15 pm ] |
Post subject: | Re: Is This Possible? |
It was actually sort of an experiment, to see if it was possible. I had the batch file coded correctly so I had successfully made a Lua generator for Cortex Command, but as you said, it was limiting. I don't really have a use for it. That's why I came here to see if it is even possible to use these Lua's at all, considering the way the batch makes them. |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |