Dynamic Objects not moving as they should. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Dynamic Objects not moving as they should. (
/showthread.php?tid=336210)
Dynamic Objects not moving as they should. -
jessejanssen - 21.04.2012
Hey reader,
I scripted this parkinglot thing for my server, and now the gates aren't opening/closing as they should. They do actually open but you do not see them move, it's just. One second after you typed the command they are opened, six seconds later they are closed again.
This is the entrance gate creation:
pawn Код:
CreateDynamicObject(968, 1222.78, -1354.62, 13.13, 0.00, 90.00, 90.00);
This is the exit gate creation:
pawn Код:
CreateDynamicObject(968, 1216.04, -1339.99, 13.18, 0.00, 270.00, 90.00);
This is the entrance gate opening:
pawn Код:
MoveDynamicObject(ParkingLotGate[0], 1222.78, -1354.62, 13.13, 3.0, 0.00, 0.00, 90.00);
This is the exit gate opening:
pawn Код:
MoveDynamicObject(ParkingLotGate[1], 1216.04, -1339.99, 13.18, 3.0, 0.00, 0.00, 90.00);
This is the entrance gate closing:
pawn Код:
MoveDynamicObject(ParkingLotGate[0], 1222.78, -1354.62, 13.13, 3.0, 0.00, 90.00, 90.00);
This is the exit gate closing:
pawn Код:
MoveDynamicObject(ParkingLotGate[1], 1216.04, -1339.99, 13.18, 3.0, 0.00, 270.00, 90.00);
I hope someone can tell me what is wrong with it,
Best regards,
Jesse