28.02.2013, 07:50
Hello
Im making a Drag Strip, and have gates that Drop and come back up, but they are Cmds.
how would i make this on a timer that goes off every 20 seconds?
Ive looked at wiki and it made no sense.
What ive got:
gates Up:
Gates Down :
So how would i put a timer on this? i want it to lower every 20 sec?
Im making a Drag Strip, and have gates that Drop and come back up, but they are Cmds.
how would i make this on a timer that goes off every 20 seconds?
Ive looked at wiki and it made no sense.
What ive got:
gates Up:
Quote:
new drag1; new drag2; |
Quote:
drag1 = CreateObject(970, -172.43, 1409.84, 66.71, 0.00, 0.00, 90.00); drag2 = CreateObject(970, -172.43, 1404.64, 66.71, 0.00, 0.00, 90.00); |
Quote:
if(strcmp(cmdtext,"/drag",true)==0) { MoveObject(drag1, -172.43, 1409.84, 65.87 , 5.00); MoveObject(drag2, -172.43, 1404.64, 65.87 , 5.00); return 1; } |
Quote:
if(strcmp(cmdtext,"/dragreset",true)==0) { MoveObject(drag1, -172.43, 1409.84, 66.71 , 5.00); MoveObject(drag2, -172.43, 1404.64, 66.71 , 5.00); return 1; } |