03.09.2016, 21:34
Hi, I've just created a toll system, but the tolls are not opening when I do /opentoll.
Here's the code for one of the tolls:
This line should open the toll (set rot Y to 0 which will open it):
But the toll doesn't move at all, what am I doing wrong here? Basically I just copied and pasted the coordinates of the toll there and changed the rot Y to 0. I've never used MoveObject before though so I might be doing something wrong.
Here's the code for one of the tolls:
Код:
TollData[tollBarriers][0] = CreateDynamicObject(968, 1738.59460, 530.57202, 27.36010, 0.00000, 90.00000, 160.36710);
Код:
MoveObject(TollData[tollBarriers][0], 1738.59460, 530.57202, 27.36010, 2.0, 0.00000, 0.00000, 160.36710);