Results 1 to 9 of 9

Thread: Position display

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    viewpos shows the position from which the player is viewing, not his origin
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  2. #2
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    Quote Originally Posted by IzNoGoD View Post
    viewpos shows the position from which the player is viewing, not his origin
    well, viewpos returns the player's origin + 60 added to Z coordinate. So, they are basically the same thing. You simply have to take 60 units off the Z coordinate.

  3. #3
    Corporal guiismiti's Avatar
    Join Date
    Dec 2013
    Location
    Brazil
    Posts
    244
    Thanks
    121
    Thanked 42 Times in 31 Posts
    Quote Originally Posted by Tally View Post
    well, viewpos returns the player's origin + 60 added to Z coordinate. So, they are basically the same thing. You simply have to take 60 units off the Z coordinate.
    so, is origin the feet and viewpos the eyes?
    set logfile 2

  4. #4
    Brigadier General
    Join Date
    Oct 2012
    Posts
    994
    Thanks
    20
    Thanked 588 Times in 388 Posts
    Quote Originally Posted by guiismiti View Post
    so, is origin the feet and viewpos the eyes?
    Yes, that is correct.

  5. #5
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    Quote Originally Posted by Tally View Post
    well, viewpos returns the player's origin + 60 added to Z coordinate. So, they are basically the same thing. You simply have to take 60 units off the Z coordinate.
    Confirmed, although viewpos uses integers.

    Also, +11 for prone and +40 for crouch
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

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
  •