ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:actordistance

Table of Contents

ActorDistance

fixed ActorDistance(int tid1, int tid2)

Description

Returns the distance between two actors in mapunits, taking the Z coordinates into account.

Example

print(s:"You are ", f:ActorDistance(0, monstertid), s:" mapunits away from the monster",
      s:"he might be above you");
functions/actordistance.txt · Last modified: 2017/03/15 21:30 by korshun