Search found 2 matches
- Tue Jul 04, 2023 7:56 pm
- Forum: Support and Development
- Topic: Question about for loops
- Replies: 5
- Views: 2056
Re: Question about for loops
Thanks, I realized that the forum text editor removed the [ i ] that I added after the zombies on line one, I edited my post to add it in. Thanks a lot though, both these options make sense. I've had a lot of trouble with removing objects in a list in the past and for some reason it never occurred t...
- Tue Jul 04, 2023 6:07 am
- Forum: Support and Development
- Topic: Question about for loops
- Replies: 5
- Views: 2056
Question about for loops
I have this code here for removing a bunch of zombies in the zombies table, each of the values in zombies is a individual zombie table: for i,z in ipairs(zombies) do zombies [ i ] = nil (1) z = nil (2) end My question is, why does line (1) work and line (2) doesn't? When I try line 2 nothing happens...