ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:length3d

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
functions:length3d [2017/03/15 21:33] korshunfunctions:length3d [2017/03/17 18:13] – [Example] korshun
Line 13: Line 13:
 int z = GetActorZ(tid2) - GetActorZ(tid1); int z = GetActorZ(tid2) - GetActorZ(tid1);
 int distance = length3d(x, y, z), int distance = length3d(x, y, z),
-print(s:"The two actors are ", f:distance, s:" mapunits apart");+print(s:"The two actors are ", f:distance, s:" mapunits apart in 3D space");
 </code> </code>