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);
..
}
action detect(){
my.emask = ENABLE_IMPACT;
my.event = distance_event;
}
Thanks all