Thread: [PI] Full Area Object Clicking.

Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1 [PI] Full Area Object Clicking. 
    Registered Member
    Join Date
    Aug 2013
    Posts
    101
    Thanks given
    74
    Thanks received
    11
    Rep Power
    20
    Okay so I have a problem with object clicking in general, below is an example you should look at.

    o = position of object.
    x = other positions object takes up (think stalls or large trees).
    c = places you can click on the object to use the object cases in actionhandler
    ; = ground
    Code:
    ;;;;;
    ;ocx;
    ;cxx;
    ;;;;;
    This means that I have to be in front of a c or an o to be able to use the object, if I stand in front of an x nothing will happen until I walk in front of the o, or if I am diagonal from the o (in front of the c).

    How do I make it so I can click any part of the object to perform the action?
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Aug 2013
    Posts
    101
    Thanks given
    74
    Thanks received
    11
    Rep Power
    20
    A protuberance on a level surface.
    Reply With Quote  
     

  3. #3  
    MOB
    MOB is offline
    Project Drop-Zone Owner & The BLOOD Gang Always Banging RED


    Join Date
    May 2013
    Age
    25
    Posts
    3,001
    Thanks given
    5
    Thanks received
    937
    Rep Power
    183
    You need to be calling a method so it checks if you are within that area to be clicking on it.
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Aug 2013
    Posts
    101
    Thanks given
    74
    Thanks received
    11
    Rep Power
    20
    Quote Originally Posted by MOB KLICK View Post
    You need to be calling a method so it checks if you are within that area to be clicking on it.
    Care to help with that I am a noob ?
    Reply With Quote  
     

  5. #5  
    Hella Hard Homie


    Join Date
    Jan 2011
    Posts
    587
    Thanks given
    179
    Thanks received
    43
    Discord
    View profile
    Rep Power
    111
    You need to set the c.objectDistance to a further distance, default is set to 1 and you need to set it to 2
    [Only registered and activated users can see links. ]

    Quote Originally Posted by Winston Churchill
    "Success is the ability to go from one failure to another with no loss of enthusiasm"
    Austin still owes me $43
    Reply With Quote  
     

  6. Thankful user:


  7. #6  
    Registered Member
    Join Date
    Aug 2013
    Posts
    101
    Thanks given
    74
    Thanks received
    11
    Rep Power
    20
    Quote Originally Posted by Aekramer View Post
    You need to set the c.objectDistance to a further distance, default is set to 1 and you need to set it to 2
    Thank you so much man I am such an idiot missing something so simple ^_^.
    Would rep you but only 11 rep :3.
    Reply With Quote  
     

  8. #7  
    Hella Hard Homie


    Join Date
    Jan 2011
    Posts
    587
    Thanks given
    179
    Thanks received
    43
    Discord
    View profile
    Rep Power
    111
    Quote Originally Posted by havixil View Post
    Thank you so much man I am such an idiot missing something so simple ^_^.
    Would rep you but only 11 rep :3.
    Any rep is welcome thanks.
    Everyone has to start somewhere, I had this issue for a long time aswell
    [Only registered and activated users can see links. ]

    Quote Originally Posted by Winston Churchill
    "Success is the ability to go from one failure to another with no loss of enthusiasm"
    Austin still owes me $43
    Reply With Quote  
     

  9. Thankful user:


  10. #8  
    Registered Member
    Join Date
    Aug 2013
    Posts
    101
    Thanks given
    74
    Thanks received
    11
    Rep Power
    20
    Quote Originally Posted by Aekramer View Post
    Any rep is welcome thanks.
    Everyone has to start somewhere, I had this issue for a long time aswell
    Since the subject of object clicking is touched, what will happen if I do this: [Only registered and activated users can see links. ] ?
    I mean should I just stop objectDistance checks or what? if I should is this the proper way to do it, and what happens if I do disable it? Thanks for your help btw.
    Reply With Quote  
     

  11. #9  
    Retired. Stop PMing me.

    Galkon's Avatar
    Join Date
    Nov 2007
    Age
    14
    Posts
    7,528
    Thanks given
    1,783
    Thanks received
    2,822
    Discord
    View profile
    Rep Power
    5000
    The proper way to do this is to read the object definitions from the cache, it includes their x/y axis sizes. You also have to read the maps from the cache and store the object directions, and when you click an object it grabs the direction and uses the size to calculate where you need to be to click it.
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  12. Thankful user:


  13. #10  
    Registered Member
    Join Date
    Aug 2013
    Posts
    101
    Thanks given
    74
    Thanks received
    11
    Rep Power
    20
    Quote Originally Posted by Galkon View Post
    The proper way to do this is to read the object definitions from the cache, it includes their x/y axis sizes. You also have to read the maps from the cache and store the object directions, and when you click an object it grabs the direction and uses the size to calculate where you need to be to click it.
    That sounds nice, if only i was competent enough to figure that out :/.
    How do I read object definitions and maps from the cache? Please help more I am dying over how bad this problem really is for me .
    My head is about to explode.

    EDIT: What does [Only registered and activated users can see links. ] exactly do?
    Reply With Quote  
     

Page 1 of 2 12 LastLast

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. Replies: 8
    Last Post: 10-20-2013, 02:03 AM
  2. [PI] Long-distance Object Click [HELP]
    By Compaq in forum Help
    Replies: 5
    Last Post: 03-20-2013, 06:21 PM
  3. [PI] Animation on Object Clicking
    By #Trilla in forum Help
    Replies: 2
    Last Post: 04-26-2011, 04:05 PM
  4. PI/Riotscape object clicking problem
    By Purple in forum Help
    Replies: 4
    Last Post: 10-17-2010, 10:35 PM
  5. Replies: 5
    Last Post: 10-16-2010, 07:45 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
  •