Hoofd
Junior Member
Posts: 1
Threads: 1
Joined: Feb 2011
Reputation:
0
|
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 |
|
Khyrpa
Senior Member
Posts: 638
Threads: 10
Joined: Apr 2011
Reputation:
24
|
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 |
|