fixed VectorLength3D(fixed x, fixed y, fixed z)
Returns the length of the given 3D vector.
Show 3D distance between actors:
int x = GetActorX(tid2) - GetActorX(tid1); int y = GetActorY(tid2) - GetActorY(tid1); int z = GetActorZ(tid2) - GetActorZ(tid1); int distance = length3d(x, y, z), print(s:"The two actors are ", f:distance, s:" mapunits apart in 3D space");