Welcome to AC Web.
Results 1 to 3 of 3
  1. #1

    Get Pointer from Player


    REGISTER! (FREE)
    Registered members see less ads
    and also gain access to other great features.
    Hey there I want to get a pointer to a certain player,
    I got data from this player, like his name, level, etc

    Which function could I use to get a pointer to that player by giving data? (Ex. name)

    EDIT:
    I tried using:
    Code:
    Player* newPlayer = new Player();
    But this code requires a WorldSession, which I don't have.

  2. #2
    You don't want this. You want to get the map the player is on and you want the map to select the player by his ObjectGuid.

  3. #3

    REGISTER! (FREE)
    Registered members see less ads
    and also gain access to other great features.
    Quote Originally Posted by Dreadii View Post
    You don't want this. You want to get the map the player is on and you want the map to select the player by his ObjectGuid.
    Hory shet, did not know it worked this way.
    Thank you for the fast reply +rep

 

 

Posting Permissions

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