MoveDynamicObject buggy?
#1

Hi! Here is my problem:

When i use
Код:
MoveDynamicObject(model, Pos2[0], Pos2[1], Pos2[2], speed);
it works fine.

But when I use this:
Код:
MoveDynamicObject(model, Pos2[0]+Pos[0], Pos2[1]+Pos[1], Pos2[2]+Pos[2], speed);
it do nothing.

Pos2[0 1 2] are variables what player can type in. And Pos[0 1 2] are the coordinates of the player (getPlayerPos).

I hope you can help me!
Reply
#2

You haven't made the problem very clear. You need to explain it better please.
Show some code aswell.
Reply
#3

updated
Reply
#4

It isn't even right. MoveDynamicObject takes the coordinates to tranlsate/move from the current coordinate to the coordinate you put on the MoveDynamicObject arguments and the way you are doing is adding onto them and that's why they are jagged and glitched up. Don't add/subtract values inside the MoveDynamicObject.
Reply
#5

Now it works but, it dissapers when arrives at the coordinates... How to fix it?
Reply
#6

Quote:
Originally Posted by qkac1234
Посмотреть сообщение
Now it works but, it dissapers when arrives at the coordinates... How to fix it?
It shouldn't unless you have a code that does that. I think your object is teleporting when it had done his movement so you might wanna found it where you are using that object.
Reply
#7

... It mustn't teleport! I haven't made teleports or something like that.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)