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
Khyrpa Offline
Senior Member

Posts: 638
Threads: 10
Joined: Apr 2011
Reputation: 24
#2
RE: Distance between entities

I have actually no idea but if it wouldn't be too much work. You could add collides with areas and when player and monster are at certain areas close enough, use variables to check that or something...
05-09-2011, 03:54 PM
Find




Users browsing this thread: 1 Guest(s)