1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. GTA Network forum is now in archive mode.

Dimensions

Discussion in 'Archive' started by MrBelka, Mar 25, 2017.

  1. MrBelka

    MrBelka Member

    Messages:
    30
    Likes Received:
    1
    Joined:
    Feb 27, 2017
    How can I get a list of all dimmensions on server? I mean somebody entered his house or any other place with own dimension. How can I get list of all active dimensions now?
     
  2. MissMelissa

    MissMelissa New Member

    Messages:
    0
    Likes Received:
    0
    Joined:
    Dec 26, 2016
    You shouldn't see dimensions as "things", rather just "channels" that entities can exist within. With that said, you could get a list of dimensions by iterating all entities on the server (or all players) and finding all unique dimensions (getEntityDimension).
     
  3. MrBelka

    MrBelka Member

    Messages:
    30
    Likes Received:
    1
    Joined:
    Feb 27, 2017
    Thx. This sounds good.
     
  4. Amit_B

    Amit_B Member Language Board Moderator

    Messages:
    40
    Likes Received:
    21
    Joined:
    Oct 27, 2016
    I'd use Dictionary to do that. Something like Dictionary<int, int> where the key is the dimension ID and the value is the counter of players active in it.

    Good luck.
     

Share This Page