martinwcox
05-16-2003, 05:52 AM
hi everybody
I've tried to control the position of two objects within the same lscript but coudn't get it. I don't know if I'm doing something wrong, I've just started to programm lscripts. For example, trying to get the distance between two objects:
process: ma, frame, time
{
pos = ma.get(POSITION, time);
posb = obj.get(POSITION, time);
dist = vmag(pos - posb);
}
but it does not work
how could I do such a simple thing?
thanks for help
martinwcox.-
I've tried to control the position of two objects within the same lscript but coudn't get it. I don't know if I'm doing something wrong, I've just started to programm lscripts. For example, trying to get the distance between two objects:
process: ma, frame, time
{
pos = ma.get(POSITION, time);
posb = obj.get(POSITION, time);
dist = vmag(pos - posb);
}
but it does not work
how could I do such a simple thing?
thanks for help
martinwcox.-