btw im still thinking about a longer term more elegant solution :P On Wed, Jul 22, 2009 at 5:09 PM, Alan Wolfe <alan.wolfe@xxxxxxxxx> wrote: > REALLY UGLY SOLUTION... > > you know how the send message to mob stuff can GET values from mobs too? > instead of just sending data? > > every tick of the map, you could ask each kitten for it's position using > that method. > > then, in your map tick, loop through all the positions, see which are close > enough to eachother, and send notifications to the mobs that another kitten > is close to them (or kittenS?) along with location data if needed > > complicated as heck, and ugly! > > but it would work (: > On Wed, Jul 22, 2009 at 5:06 PM, Alan Wolfe <alan.wolfe@xxxxxxxxx>wrote: > >> Hmm lemme think about it! >> >> if i gave you a list of enemies to loop through it'd be an N^2 problem >> which could get really slow especially with it running in script. >> >> Let me think about it a lil cause yeah, being able to detect proximity of >> stuff besides the player is important (: >> On Wed, Jul 22, 2009 at 4:54 PM, Kent Petersen <kentkmp@xxxxxxxxx>wrote: >> >>> Alan - I would like my kitties to play with each other when they get >>> close to one another. My problem is that I can't figure out how to make the >>> kitties detect one another. Ultimately, I would like to be able to have 4+ >>> kitties wandering around a room and playing with each other when they get >>> close to each other. Can you point me in the right direction? >>> >>> >>> On Wed, Jul 22, 2009 at 4:37 PM, Apache User < >>> dhapache@xxxxxxxxxxxxxxxxxxx> wrote: >>> >>>> User:korgath >>>> >>>> Message: added first draft of the kitties >>>> >>>> <Files Changed> >>>> A Scripts/Enemies/kitty.lua >>>> U Scripts/Personal/Kent/kenttest.lua >>>> >>>> >>>> >>> >> >