Raycast
integer
default:"511"
What the ray hits. 511 is everything.
integer
An entity to ignore.
FromCamera ignores the local player by default.table
{ hit, coords?, normal?, entity?, material? }. entity is nil for the world.FromCamera casts distance meters (default 10) from the gameplay camera.
Screen
x and y go from 0 to 1.
Example
client.lua