Thread: [562] How to make an object display its id upon click

Results 1 to 3 of 3
  1. #1 [562] How to make an object display its id upon click 
    MEIN FUHRER!

    Furor's Avatar
    Join Date
    Nov 2011
    Posts
    473
    Thanks given
    108
    Thanks received
    73
    Rep Power
    450
    I need to know the code so when I click on an object it displays the object id + position, etc.
    Reply With Quote  
     

  2. #2  
    Member [562] How to make an object display its id upon click Market Banned

    thesharp's Avatar
    Join Date
    Dec 2010
    Age
    32
    Posts
    1,118
    Thanks given
    311
    Thanks received
    140
    Rep Power
    312
    in the default case (or on top, what ever floats your boat)
    System.out.println("[Unhandled]Object : " + gameObject.getId() + " " gameObject.getLocation().toString());
    ActionSender.sendMessage(player, "[Unhandled]Object : " + gameObject.getId() + " " gameObject.getLocation().toString());
    something like that depending on what your base is.

    oh and can't even make a console message


    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    MEIN FUHRER!

    Furor's Avatar
    Join Date
    Nov 2011
    Posts
    473
    Thanks given
    108
    Thanks received
    73
    Rep Power
    450
    Quote Originally Posted by thesharp View Post
    in the default case (or on top, what ever floats your boat)
    System.out.println("[Unhandled]Object : " + gameObject.getId() + " " gameObject.getLocation().toString());
    ActionSender.sendMessage(player, "[Unhandled]Object : " + gameObject.getId() + " " gameObject.getLocation().toString());
    something like that depending on what your base is.

    oh and can't even make a console message
    Thanks for this, changed it to my base code and it works, thanks!
    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. How to make npcs spawn when you click an object
    By Chaoticunited in forum Help
    Replies: 8
    Last Post: 09-10-2011, 11:53 PM
  2. Replies: 1
    Last Post: 08-29-2010, 01:37 PM
  3. [562] Make object spawn Npc!
    By Niator in forum Help
    Replies: 12
    Last Post: 08-26-2010, 03:17 AM
  4. Replies: 2
    Last Post: 08-07-2010, 09:45 AM
  5. make a client click a object? for bluur?
    By Snow Cat123 in forum Help
    Replies: 0
    Last Post: 12-06-2009, 02:21 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
  •