The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Distance between entities
Hoofd Offline
Junior Member

Posts: 1
Threads: 1
Joined: Feb 2011
Reputation: 0
#1
Distance between entities

Hi,

is there a way using scripts to, for instance, determine the distance between the player and a monster? Or just to get their current coordinates? I need this information for an experiment I'm doing.

I can't seem to find a useful script function, while retrieving this info should be basic. I know of the visual contact function SetEntityPlayerLookAtCallback(), but I'd rather have the euclidean distance.

Hoofd.
05-09-2011, 03:33 PM
Find


Messages In This Thread
Distance between entities - by Hoofd - 05-09-2011, 03:33 PM
RE: Distance between entities - by Khyrpa - 05-09-2011, 03:54 PM



Users browsing this thread: 1 Guest(s)