Im trying to create a missile based projectile that sends an object to any mob within say 5 tiles, but, instead of bringing up a list, I want it to just randomly pick one of the possible targets.
How do I do this? Ive looked at the missile proc in the help files, and I understand how it works and such, But I just can't get it right.
ID:268926
Dec 29 2004, 1:30 pm
|
|
Then, do a x = rand(1, list.len) and go after list[x].
Something like: