Thread: PI - Npc Sizes

Results 1 to 4 of 4
  1. #1 PI - Npc Sizes 
    Registered Member
    Join Date
    Dec 2013
    Posts
    79
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Lets say I'm fighting a dragon, If i walk somewhat under it i can attack it like extremely close, How do I make it that it checks the size of big npcs and steps like 3 tiles away or so
    Reply With Quote  
     

  2. #2  
    0x2be|~0x2be
    akamichael's Avatar
    Join Date
    Jan 2012
    Age
    28
    Posts
    73
    Thanks given
    1
    Thanks received
    8
    Rep Power
    44
    You could create a method that passes in a NPC id and returns your desired integer distance, then in your combat handling have it check if player coordinates are +- the methods return distance before attacking.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Dec 2013
    Posts
    79
    Thanks given
    0
    Thanks received
    0
    Rep Power
    11
    Thanks bro, really good explanation and got it to work
    Reply With Quote  
     

  4. #4  
    Registered Member Bison's Avatar
    Join Date
    Jun 2014
    Posts
    105
    Thanks given
    1
    Thanks received
    0
    Rep Power
    11
    bump
    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. [PI] npc size?
    By Im Strength in forum Help
    Replies: 6
    Last Post: 12-21-2012, 04:20 PM
  2. [PI] A start of npc sizes
    By netzo in forum Snippets
    Replies: 19
    Last Post: 08-08-2012, 07:29 PM
  3. [PI] NPC Sizes
    By Melon in forum Help
    Replies: 7
    Last Post: 07-31-2012, 07:23 PM
  4. [PI] Npc Sizes don't work
    By boric in forum Help
    Replies: 0
    Last Post: 07-19-2012, 06:54 PM
  5. [PI]Npc Sizes for clipped npcs
    By Organic in forum Help
    Replies: 4
    Last Post: 03-09-2012, 09:58 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
  •