Results 1 to 3 of 3

Thread: Find player position? `-┤

  1. #1
    Normal User Healer Dark's Avatar
    Join Date
    Jul 2012
    Posts
    141
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    15
    Rep Power
    5

    Find player position? `-┤

    ok, anyone know how I think that "sqm" "x" player is?, example, some scripts dice, the character change "dp", and any "dp" he is, he is able to know the name of the player who is on the other side, anyone know the correct function to use?
    ~~~~~~~~~~~~~~~~~~~~~~~~
    Healer Dark
    ~~~~~~~~~~~~~~~~~~~~~~~~

  2. #2
    Normal User e k x's Avatar
    Join Date
    Sep 2013
    Posts
    32
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    2 Post(s)
    Reputation
    18
    Rep Power
    4
    local DpPositions = {x = 10, y = 10, z = 7}

    local c = getcreature("name")

    c.x #> position x for name character
    c.y #> position y for name character
    c.z #> position z for name character

    Then you must loop trough all character check each creature.xyz positions with DpPositions.xyz, when you find something that matches then you got your player.

  3. #3
    Normal User Healer Dark's Avatar
    Join Date
    Jul 2012
    Posts
    141
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    15
    Rep Power
    5
    ty xd
    you lit my mind \o, now I already have an idea of how to do what I need, thank you, by the way, you're the EKX neo? oO
    ~~~~~~~~~~~~~~~~~~~~~~~~
    Healer Dark
    ~~~~~~~~~~~~~~~~~~~~~~~~

Tags for this Thread

Posting Permissions

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