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, 5: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 |
Hope that helps