hi i have a similar question. How do i calculate the distance between the player and a third entity. for example my player come in contact with this door, how do i calculate the distance from the player to the next door? How do i give the model i created in WED a name in the script?
float distance;
function distance_event(){ .. distance = vec_dist(you.x, ????.x); .. }
The event offers you a pointer to the object. One of them is 'me' and the other is 'you'. To find out which pointer you get in a certain case, you have to read the manual about events carefully!
yeah i understand that, i mean is there a way to get another entity position(which is not my and you) when i trigger the event. Hope you understand what i meant >_<
Re: Measure the distance between two objects?
[Re: silently99]
#225059 09/02/0818:0909/02/0818:09