10-02-2011, 22:49
Code:
DistanceToGroundsurface( origin )
{
return (origin[2] - BulletTrace( origin, origin + ( 0, 0, -200000 ), false, self )[ "position" ][2]) * 2.54;
}
Example usage:
Code:
self iPrintLn( DistanceToGroundsurface( self.origin ));