10.05.2013, 00:12
As i can see, you are not moving any object. See this:
and when you want to open the toll you use:
You need to change de Z position to make the toll change his position.
You can use this:
pawn Код:
Toll_1 = CreateDynamicObject(3578, 1801.00, 692.66, 10.00, 1801.00, 692.66, 30);
pawn Код:
//function
MoveDynamicObject(Toll_1, 1801.00, 692.66, 10.00, 30);
You can use this:
pawn Код:
Toll_1 = CreateDynamicObject(3578, 1801.00, 692.66, 20.00, 1801.00, 692.66, 30); //iґm not sure if 20.00 is correct, you can try with different values.
pawn Код:
//function
MoveDynamicObject(Toll_1, 1801.00, 692.66, 10.00, 30); //you will make the toll go down.