Im trying to make a proc that cycles through all of the mobs in the world, then randomly puts them on two teams: red and blue. I can't quite figure it out, since i get a type mismatch runtime error when i put the mobs in lists. Can someone help?
-Peoples
ID:175605
Mar 29 2003, 4:50 am
|
|
Aleis wrote:
Im trying to make a proc that cycles through all of the mobs in the world, then randomly puts them on two teams: red and blue. I can't quite figure it out, since i get a type mismatch runtime error when i put the mobs in lists. Can someone help? The problem is that you're not initializing the list. The var you're using will start out as null, so when you try to add a mob to it you get an error. You didn't mention anything about balancing the teams, but I'll assume you wanted to do so. team Lummox JR |
In response to Lummox JR
|
|
Thank you Lummox, i posted with aleis before, but disregard that.
Drag0n Pr0ductions thanks you. |
Hope that helps