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?
BonesTheRabbit Offline
Member

Posts: 68
Threads: 20
Joined: Feb 2012
Reputation: 2
#3
RE: Focus Distance Debug Variable?

(12-20-2014, 03:40 PM)Daemian Wrote: You could create it, with the new patch you can get where the player or an entity is located.
Using both you can create the function GetFocusDist()
Now, the code you gotta figure it out. It needs testing and time. Let us know how it goes. :]

GetPlayerPosX(); all return values based upon the origin point of the player entity, but doesn't deal with where the player is looking. The highlighted debug variable returns a combination of that value, and where the player is actually looking. I was hoping to work with this in tandem with the aforementioned function, to calculate how far a player's focus is from an object's center point. Alternatively, if I could somehow return the pitch and yaw of the player's camera, I could work with that as well (In-fact, that would be ideal). Only way I can think of is a really questionable brute force method that I'm worried might be wonky.

Thanks for the suggestion, though.
(This post was last modified: 12-20-2014, 09:31 PM by BonesTheRabbit.)
12-20-2014, 09:25 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 BonesTheRabbit - 12-20-2014, 09:25 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)