Garry's Mod Wiki

Entity:WorldToLocal

  Vector Entity:WorldToLocal( Vector wpos )

Description

Converts a worldspace vector into a vector local to an entity

Arguments

1 Vector wpos
The world vector

Returns

1 Vector
The local vector