Thread: help with ice barrage

Results 1 to 3 of 3
  1. #1 help with ice barrage 
    Registered Member
    Join Date
    May 2015
    Posts
    18
    Thanks given
    0
    Thanks received
    0
    Rep Power
    12
    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?
    Reply With Quote  
     

  2. #2  
    Super Donator


    Join Date
    Feb 2011
    Age
    24
    Posts
    1,136
    Thanks given
    180
    Thanks received
    178
    Rep Power
    243
    Quote Originally Posted by Kingrambo View Post
    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 do this has been released as a Tut/Snippet, just search for it..
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Dec 2015
    Posts
    36
    Thanks given
    0
    Thanks received
    4
    Rep Power
    12
    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.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. [Delta] help with ice barrage sound
    By Mr Sandman in forum Help
    Replies: 6
    Last Post: 10-25-2011, 03:15 PM
  2. need help with ice barrage
    By lorenzo in forum Help
    Replies: 1
    Last Post: 02-12-2010, 11:44 PM
  3. Help me with DS barrage quickly.
    By Poptart in forum Help
    Replies: 7
    Last Post: 01-26-2009, 08:01 AM
  4. Ice barrage,blitz,burst,rush help
    By Oh my gawd in forum Help
    Replies: 4
    Last Post: 01-25-2009, 06:26 PM
  5. Ice barrage,blitz,burst,rush help
    By Oh my gawd in forum Requests
    Replies: 2
    Last Post: 01-24-2009, 07:12 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •