19.09.2009, 17:18
Hello i created a gate command:
is there any chance using timers to make it go smooth so first rotate to 88 and it sets off another timer?? i got the rotation positions here:
can any one start me off with the timers so that the gate will open in about 5s not longer ?
Код:
new gate1 gate1 = CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 89.3814, 90.0773); if(strcmp(cmdtext, "/open", true) == 0) { { SetObjectRot(gate1, 0.0000, 0.1406, 90.0773); }
Код:
CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 89.3814, 90.0773); // closed CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 88.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 87.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 86.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 85.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 84.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 83.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 82.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 81.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 80.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 79.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 78.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 77.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 76.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 75.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 74.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 73.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 72.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 71.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 70.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 69.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 68.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 67.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 66.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 65.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 64.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 63.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 62.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 61.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 60.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 59.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 58.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 57.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 56.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 55.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 54.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 53.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 52.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 51.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 50.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 49.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 48.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 47.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 46.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 45.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 44.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 43.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 42.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 41.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 40.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 39.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 38.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 37.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 36.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 35.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 34.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 33.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 32.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 31.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 30.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 29.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 28.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 27.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 26.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 25.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 24.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 23.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 22.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 21.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 20.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 19.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 18.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 17.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 16.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 15.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 14.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 13.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 12.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 11.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 10.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 9.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 8.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 7.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 6.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 5.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 4.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 3.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 2.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 1.1406, 90.0773); CreateObject(968, 1544.693359, -1630.840210, 13.129566, 0.0000, 0.1406, 90.0773); // open