|
|
trying to make ice barrage attack more than one person in mulit areas but all it does is hit 1 person even if there next to eachother or under eachother im using the poanizer source can anyone help please?




I'm pretty sure your codebase does not have a way to get the players from a region so I'd suggest looping through all of your players and checking which players are 1 square away from your target (use Point2D.distance(x1, y1, x2, y2) to check the distance, don't use Manhattan or you'd only get the players horizontally and vertically and not the corners). Then apply the same spell effect on those players too.
There is no easy or cheap way to do it other than looping through each and every single available player and applying the spell effect on those who need it.
| « Npc Health not updating | Telling the world that somebody gets item from a boss » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |