X Tutup
Skip to content

EyePos() global function does not give reliable output #2516

@NeatNit

Description

@NeatNit

As discussed on the forum: https://facepunch.com/showthread.php?t=1497739&p=49957704&viewfull=1#post49957704

Video of the issue: I bound a key to print the output to the chat.
bind - "lua_run_cl chat.AddText('Global: ', tostring(EyePos()), '\nPlayer: ', tostring(LocalPlayer():EyePos()),'\n')"
Format is:
Global: EyePos()
Player: LocalPlayer():EyePos()

It seems that the EyePos() vector gets updated every time a prop is spawned:
https://www.youtube.com/watch?v=CoPzV2AMooU

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      X Tutup