Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help Focus Distance Debug Variable?
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#4
RE: Focus Distance Debug Variable?

Remember, there's more than just the GetPlayerPos functions. How about using the StartPlayerLookAt and the look callback? That will be called whenever the player looks at a certain object. How about using that along with GetEntityPos of this object, then doing a calculation of the relation of distance between the player and the object?

I have a rough idea of how it can work, although actually putting it down to script and making it work will require testing and lots of calculations and a clear mind. Good luck.

(This post was last modified: 12-20-2014, 09:35 PM by Mudbill.)
12-20-2014, 09:34 PM
Find


Messages In This Thread
RE: Focus Distance Debug Variable? - by Daemian - 12-20-2014, 03:40 PM
RE: Focus Distance Debug Variable? - by Mudbill - 12-20-2014, 09:34 PM
RE: Focus Distance Debug Variable? - by Mudbill - 12-20-2014, 10:09 PM
RE: Focus Distance Debug Variable? - by Daemian - 12-27-2014, 04:22 PM
RE: Focus Distance Debug Variable? - by Daemian - 12-29-2014, 11:12 PM



Users browsing this thread: 1 Guest(s)