Thread: objects :cool: :cool:

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1 objects :cool: :cool: 
    Registered Member
    Join Date
    Oct 2012
    Posts
    79
    Thanks given
    1
    Thanks received
    13
    Rep Power
    13
    is there anyway to get the object facing orientation throug object def or something similar?
    Reply With Quote  
     

  2. #2  
    Registered Member Keepin_Green's Avatar
    Join Date
    Oct 2012
    Posts
    225
    Thanks given
    12
    Thanks received
    19
    Rep Power
    13
    Not 100% sure what you mean...

    Anyway, if you want an object to face a certain way, you can change this in ObjectManager.java (assuming to use PI).

    c.getPA().checkObjectSpawn(ObjectID, X Coord, Y Coord, ObjectFacing, 10);

    Object ID - Example: 1 for crate
    X Coord - Example: 3209
    Y Coord - Example: 3343
    ObjectFacing - Example: 3

    Object Facing has 4 codes (possibly more, not sure) these ranged from 0 to 4. Each facing a different way.

    It is not possible to have an object facing diagonal as far as I know.

    This answer your question?
    Reply With Quote  
     

  3. Thankful users:


  4. #3  
    Only Skype is TrickSpades
    MGkelly's Avatar
    Join Date
    Sep 2013
    Posts
    540
    Thanks given
    92
    Thanks received
    77
    Rep Power
    58
    Quote Originally Posted by Keepin_Green View Post
    Not 100% sure what you mean...

    Anyway, if you want an object to face a certain way, you can change this in ObjectManager.java (assuming to use PI).

    c.getPA().checkObjectSpawn(ObjectID, X Coord, Y Coord, ObjectFacing, 10);

    Object ID - Example: 1 for crate
    X Coord - Example: 3209
    Y Coord - Example: 3343
    ObjectFacing - Example: 3

    Object Facing has 4 codes (possibly more, not sure) these ranged from 0 to 4. Each facing a different way.

    It is not possible to have an object facing diagonal as far as I know.

    This answer your question?
    ^ Nice explanation and
    South = 0
    North = 1
    East = 2
    West = 3
    I support your mother.
    Reply With Quote  
     

  5. #4  
    Registered Member
    Join Date
    Oct 2012
    Posts
    79
    Thanks given
    1
    Thanks received
    13
    Rep Power
    13
    That's not what i need, i'll explain you why i need the object facing direction what i wanna do is when i steal from a stall if the object is facing some direction i grab that facing direction and spawn an empty stall with that same direction, you know? so it looks kewl.
    Reply With Quote  
     

  6. #5  
    Registered Member Keepin_Green's Avatar
    Join Date
    Oct 2012
    Posts
    225
    Thanks given
    12
    Thanks received
    19
    Rep Power
    13
    Quote Originally Posted by stalkerstrucker View Post
    That's not what i need, i'll explain you why i need the object facing direction what i wanna do is when i steal from a stall if the object is facing some direction i grab that facing direction and spawn an empty stall with that same direction, you know? so it looks kewl.
    So basically, you want to know which way the object is facing?
    Reply With Quote  
     

  7. #6  
    Donator

    Join Date
    Aug 2010
    Posts
    317
    Thanks given
    13
    Thanks received
    26
    Rep Power
    20
    Quote Originally Posted by Keepin_Green View Post
    Not 100% sure what you mean...

    Anyway, if you want an object to face a certain way, you can change this in ObjectManager.java (assuming to use PI).

    c.getPA().checkObjectSpawn(ObjectID, X Coord, Y Coord, ObjectFacing, 10);

    Object ID - Example: 1 for crate
    X Coord - Example: 3209
    Y Coord - Example: 3343
    ObjectFacing - Example: 3

    Object Facing has 4 codes (possibly more, not sure) these ranged from 0 to 4. Each facing a different way.

    It is not possible to have an object facing diagonal as far as I know.

    This answer your question?
    Thanks for that post you just thought me something!
    Reply With Quote  
     

  8. #7  
    Registered Member Keepin_Green's Avatar
    Join Date
    Oct 2012
    Posts
    225
    Thanks given
    12
    Thanks received
    19
    Rep Power
    13
    Quote Originally Posted by Varrock View Post
    Thanks for that post you just thought me something!
    Haha, no problem at all. ^.^
    Reply With Quote  
     

  9. #8  
    Registered Member
    Join Date
    Oct 2012
    Posts
    79
    Thanks given
    1
    Thanks received
    13
    Rep Power
    13
    Quote Originally Posted by Keepin_Green View Post
    So basically, you want to know which way the object is facing?
    exactly
    Reply With Quote  
     

  10. #9  
    Registered Member Keepin_Green's Avatar
    Join Date
    Oct 2012
    Posts
    225
    Thanks given
    12
    Thanks received
    19
    Rep Power
    13
    Quote Originally Posted by stalkerstrucker View Post
    exactly
    Your server should have a minimap with a compass next to it.

    If you added the object yourself, then you will have put in a code similar to this:

    c.getPA().checkObjectSpawn(111, 3332, 4873, 2, 10);
    As I said above, the object facing is this one.

    c.getPA().checkObjectSpawn(111, 3332, 4873, x, 10);
    The object facing for that is:

    South = 0
    North = 1
    East = 2
    West = 3

    (credits to: Dyl)
    If you didn't add the object yourself, look which way the object is facing, and turn your screen to have the same way.

    Then use the same code above,

    South = 0
    North = 1
    East = 2
    West = 3
    (Credits to: Dyl)
    To find out which way the object is facing.

    Object that are already in the game can't have their facing changed, so you would need to remove it and add it again and add the object facing that way.

    Hope that helped.
    Reply With Quote  
     

  11. #10  
    Registered Member
    Join Date
    Oct 2012
    Posts
    79
    Thanks given
    1
    Thanks received
    13
    Rep Power
    13
    thats what i didnt want to do, i dont wanna look through all the stalls in the game, Hyperion wich is object orientated has a class named Object that i think handles the facing direction, but i was wondering if any winterlove had it.
    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: 9
    Last Post: 05-08-2011, 01:38 AM
  2. [COOL] 2 TUTS in 1 THREAD
    By Icepkz in forum Tutorials
    Replies: 8
    Last Post: 06-15-2007, 10:58 AM
  3. Cool New Zelda Sig!!!!
    By KillaReborn in forum Showcase
    Replies: 7
    Last Post: 05-30-2007, 07:14 PM
  4. Another Cool Signature. :D
    By Inside Sin in forum Showcase
    Replies: 7
    Last Post: 05-26-2007, 02:49 AM
  5. Real Cool Sig!
    By System.Out in forum Showcase
    Replies: 5
    Last Post: 04-20-2007, 01:47 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
  •