ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:actordistance2d

Table of Contents

ActorDistance2D

fixed ActorDistance2D(int tid1, int tid2)

Description

Returns the distance between two actors on the XY plane in mapunits, ignoring the Z dimension.

Example

print(s:"You are ", f:ActorDistance2D(0, monstertid), s:" mapunits away from the monster");
functions/actordistance2d.txt · Last modified: 2017/03/15 21:28 by korshun