Page 1 of 1

distance from entity1 to entity2

Posted: Thu Jul 07, 2005 7:49 pm
by lizardkid
i feel like such a noob.

how can i find the distance between two specified entities?
i looked at trace and sighttrace but those return if obstructed, not distance.

Posted: Thu Jul 07, 2005 8:01 pm
by Rookie One.pl

Code: Select all

local.distance = vector_length(local.ent1.origin - local.ent2.origin)