Data Realms Fan Forums http://45.55.195.193/ |
|
local lists? *Solved http://45.55.195.193/viewtopic.php?f=73&t=17447 |
Page 1 of 1 |
Author: | CaveCricket48 [ Sun Dec 27, 2009 3:19 pm ] |
Post subject: | local lists? *Solved |
Sooooo, how do you make a list local, and then interact with it (adding, removing, recalling variables) locally? Edit: Also, how do you get the number of items in a specified list? |
Author: | Grif [ Mon Dec 28, 2009 12:23 am ] |
Post subject: | Re: local lists? |
local list = {} table.insert(list,data) table.remove(list,data) list[cell] local count = #list in order |
Author: | CaveCricket48 [ Mon Dec 28, 2009 12:38 am ] |
Post subject: | Re: local lists? |
The list stuff I have: local flylistb = {}; -- Creating the list flylistb.insert(flylistb,self.startingpos) -- Adding a variable (self.startingpos is a Vector) flylistb[self.linecounter] -- Recalling a variable (self.linecounter is a number value) EDIT: Also, how do you get the list number of an item in a list? Scratch that, fixed. Thanks Grif. |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |