An ACS library for ZDoom-based ports
fixed ActorDistance2D(int tid1, int tid2)
Returns the distance between two actors on the XY plane in mapunits, ignoring the Z dimension.
print(s:"You are ", f:ActorDistance2D(0, monstertid), s:" mapunits away from the monster");