Imperivm Modding WikiCKS · FORMATS · GUIDESEspañol
Obj · CKS MEMBER

DistTo

Obj::DistTo computes distance from an Obj to a point and subtracts its template offset.

Signature

int Obj::DistTo(point)

Parameters and return

Receiver: Obj · Return: int

PositionType
1point

Other overloads

MemberSignature and description
Obj::DistToObjint Obj::DistTo(Obj)

Returns the distance between the edges of two objects. The result retains its sign; the distance unit is not specified here.

← Explore Obj
MarkdownJSON

Suggest a better description

Your proposal will be held in a private inbox for review.

Controller: José Luis de la Torre Reyes. Proposals are processed to review documentation improvements on the basis of legitimate interests. You can request access, correction, erasure or object by writing to seluedita@gmail.com. Opening this form uses a first-party security cookie for one hour. Submitting stores the proposal and an IP-derived security identifier in the private inbox; omitting your name does not make the submission technically anonymous. Privacy information · Cookies and browser storage.

0 / 4000

Proposals are reviewed before publication. Do not include personal information in the description.