![]() |
Distance between entities - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods (https://www.frictionalgames.com/forum/forum-35.html) +--- Thread: Distance between entities (/thread-7907.html) |
Distance between entities - Hoofd - 05-09-2011 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. RE: Distance between entities - Khyrpa - 05-09-2011 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... |