Checking object pos
#1

Hi i've a big problem with checking object pos
top
Код:
new something;
init
Код:
something = CreateObject(ID, 2001.3964, 1547.1013, 13.5002, 3.4377, 355.7028, 270.6186);
and public with timer who is checking this object pos
Код:
public Object() {
new Float:OX,Float:OY,Float:OZ;
GetObjectPos(something,OX,OY,OZ);
if(OX != 2001.3964 && OY != 1547.1013) {
SetObjectPos(something,2001.3964, 1547.1013, 13.5002);
SetObjectRot(something, 3.4377, 355.7028, 270.6186);
}
return 1;
}
but if i change pos of this object nothing happend

how to fix this i'm testing with DestroyObject and Create new but nothing too :/
Reply
#2

If it's an object that you push, the GetObjectPos won't work, it will return the position you last set it to.
Reply
#3

So how to fix this ? I've no idea
Reply
#4

You don't, if a player moves an object as far as the program is concerned it's still where it put it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)