So I'm trying to get a name of a raycasehit and output it to console. But I don't really work and I cant figure out why.
Code is
[DOUBLEPOST=1517654810][/DOUBLEPOST]Nvm figured it out figured it out.Code:RaycastHit hit; if (Physics.Raycast(player.eyes.HeadRay(), out hit, Settings.MaxDistance)) Puts((hit.GetEntity).name);
Solved Raycast hit name
Discussion in 'Rust Development' started by cookiecool, Feb 3, 2018.