Thread: Spawned objects visible for other players

Results 1 to 4 of 4
  1. #1 Spawned objects visible for other players 
    Registered Member Psychoactive's Avatar
    Join Date
    Jun 2015
    Posts
    479
    Thanks given
    59
    Thanks received
    51
    Rep Power
    23
    Hello,

    When you spawn an object, the object is only visible for you.
    How can I make it, so it's visible for other players too.

    This might be basic but I have no idea where to look.

    Thanks in advance!
    You are pure perfection living in a complete world
    Reply With Quote  
     

  2. #2  
    Developer

    Divine's Avatar
    Join Date
    Oct 2013
    Age
    25
    Posts
    1,026
    Thanks given
    665
    Thanks received
    295
    Rep Power
    223
    do you mean non permanent ones with a command or permanent ones?

    if they're permanent then go to ObjectsManager.java and search for:
    Code:
    public static void loadCustomSpawns(Player c) {
    under that you should be able to add objects.

    [Only registered and activated users can see links. ]
    Spoiler for vouches(20+):

    [Only registered and activated users can see links. ]
    PM me for more vouches!

    Reply With Quote  
     

  3. #3  
    Registered Member Psychoactive's Avatar
    Join Date
    Jun 2015
    Posts
    479
    Thanks given
    59
    Thanks received
    51
    Rep Power
    23
    Quote Originally Posted by iDez View Post
    do you mean non permanent ones with a command or permanent ones?

    if they're permanent then go to ObjectsManager.java and search for:
    Code:
    public static void loadCustomSpawns(Player c) {
    under that you should be able to add objects.
    Non permanent ofc , like you use the command.

    BAMP!
    You are pure perfection living in a complete world
    Reply With Quote  
     

  4. #4  
    Diligence pays off.

    Venn's Avatar
    Join Date
    Nov 2012
    Age
    21
    Posts
    231
    Thanks given
    191
    Thanks received
    56
    Rep Power
    88
    Then make a method for that so all players can see it? I don't know PI very well (or if you're even using it), but I can write something like this:

    Code:
        public void spawnGlobalObject() {
            for (int i = 0; i < PlayerHandler.players.length; i++) {
                Client c = (Client) PlayerHandler.players[i];
                if (c == null) {
                    continue;
                }
                //sendObject code here
            }
        }

    Hope this helped.
    Quote Originally Posted by Therandomkid View Post
    if you wanna hate just remember i fucked your mom
    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 dropped items arent visible for other players
    By NoChildSupport in forum Help
    Replies: 14
    Last Post: 09-18-2013, 01:52 PM
  2. how to make you 554 client load server for other players
    By travisman26 in forum Configuration
    Replies: 6
    Last Post: 08-25-2009, 08:59 AM
  3. Replies: 3
    Last Post: 05-16-2009, 07:45 PM
  4. Replies: 3
    Last Post: 04-20-2009, 03:58 PM
  5. object dont disapear for other players.
    By Serenity in forum RS 503+ Client & Server
    Replies: 16
    Last Post: 03-11-2009, 10:15 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •