Thread: [CPI] Object clicking

Results 1 to 8 of 8
  1. #1 [CPI] Object clicking 
    Let the good times roll
    Eazy's Avatar
    Join Date
    Jun 2012
    Age
    27
    Posts
    1,234
    Thanks given
    90
    Thanks received
    223
    Rep Power
    70
    Problem solved.

    Thanks for 7Winds!




    Reply With Quote  
     

  2. #2  
    Community Veteran


    Arch337's Avatar
    Join Date
    Sep 2008
    Posts
    2,950
    Thanks given
    210
    Thanks received
    349
    Rep Power
    1376
    try remove
    Code:
    c.actionTimer = 4;
    above
    Code:
    if(c.actionTimer > 0) {


    "A fail act is something you do regular, but a dumb act is something you can learn from"
    Spoiler for Problem?:
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Nov 2010
    Posts
    8
    Thanks given
    0
    Thanks received
    4
    Rep Power
    0
    Awh Cmon arch setting something to 4 then returning if its above 0 seems like great fun to me
    Reply With Quote  
     

  4. #4  
    Let the good times roll
    Eazy's Avatar
    Join Date
    Jun 2012
    Age
    27
    Posts
    1,234
    Thanks given
    90
    Thanks received
    223
    Rep Power
    70
    Quote Originally Posted by arch337 View Post
    try remove
    Code:
    c.actionTimer = 4;
    above
    Code:
    if(c.actionTimer > 0) {
    Doesn't make any sense, and already tried that and doesn't work




    Reply With Quote  
     

  5. #5  
    Community Veteran


    Arch337's Avatar
    Join Date
    Sep 2008
    Posts
    2,950
    Thanks given
    210
    Thanks received
    349
    Rep Power
    1376
    Quote Originally Posted by Eazy View Post
    Doesn't make any sense, and already tried that and doesn't work
    if that do not make any sense, then please stop program.
    Basically your setting a action timer to 4 then right after your adding a check if that action timer is more then 4, your code straight under will go to the "return;" which stops the code there.
    Since that is not working is your "c.actionTimer" even being removed or is this void even being called anywhere?
    A wise choice here would be to check if the packet is correct send, if the void is being sended etc. Can you do that you believe?


    "A fail act is something you do regular, but a dumb act is something you can learn from"
    Spoiler for Problem?:
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Nov 2010
    Posts
    8
    Thanks given
    0
    Thanks received
    4
    Rep Power
    0
    Easy its quite simple you set the variable to 4, then below have a return statement checking if its anything greater then 0 , 4 will always be greater then 0, so your returning, and not doing the rest of the code.

    if(c.actionTimer > 0){
    return;
    }

    is your issue, think carefully the fix is easy.
    Reply With Quote  
     

  7. #7  
    Ex Rune-Scaper

    Join Date
    Jun 2008
    Posts
    3,534
    Thanks given
    457
    Thanks received
    1,257
    Rep Power
    990
    I fixed this issue in my project aeolus check that out. iirc its because the clickobject in the clickobject packet was not getting set to 0; therefore your method firstClickObject doesn't work.
    Attached image
    Reply With Quote  
     

  8. Thankful user:


  9. #8  
    Let the good times roll
    Eazy's Avatar
    Join Date
    Jun 2012
    Age
    27
    Posts
    1,234
    Thanks given
    90
    Thanks received
    223
    Rep Power
    70
    Quote Originally Posted by 7Winds View Post
    I fixed this issue in my project aeolus check that out. iirc its because the clickobject in the clickobject packet was not getting set to 0; therefore your method firstClickObject doesn't work.

    Thanks man! Got 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. [474] Object Click 1
    By Encouragin in forum Tutorials
    Replies: 5
    Last Post: 02-24-2009, 06:39 PM
  2. [503] First Object click
    By Encouragin in forum Tutorials
    Replies: 19
    Last Post: 07-28-2008, 02:57 AM
  3. First object click released..
    By wizzyt21 in forum Tutorials
    Replies: 2
    Last Post: 07-21-2008, 10:09 AM
  4. Object click one??
    By Profile in forum Tutorials
    Replies: 8
    Last Post: 07-10-2008, 08:25 AM
  5. object click one handler
    By hoodlom in forum Tutorials
    Replies: 17
    Last Post: 04-25-2008, 07:37 PM
Tags for this Thread

View Tag Cloud

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •