Quote:
Originally Posted by lyric
do you know how to get cordinates ? I would do it later.
|
GetClientEyePosition will give you their coordinates at eye level which is... 64 hammer units up if they're not ducking?
Actually, it might be a good idea to get a player's eye height, then use a
traceray to go straight down (I think up-down is the first value of an angle vector, so { -90, 0, 0 } ?) until you hit world geometry (MASK_SOLID ?).
Edit: Whoops, the player's own model is considered solid, so you need to filter it as documented on the comments in the main
TraceRay docs.
__________________