Garry's Mod Wiki

Garry's Mod Wiki

  number Panel:Distance( Panel tgtPanel )

Description

Returns the linear distance from the center of this panel object and another. Both panels must have the same parent for this function to work properly.

Arguments

1 Panel tgtPanel
The target object with which to compare position.

Returns

1 number
The linear (straight-line) distance between the center of the two objects.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...