Hi, I am just wondering which is the most efficient/best way of making a troop transport move thru multiple frames. Would it be best if I make a .key? Or how about thingframes? Or even moving to ghost positions, all representing frames?
Here's what I made so far, is there a better way? (There are 3 stops, hence Sleep)
------------------
nil nip nada zip zero naught lip zil
Here's what I made so far, is there a better way? (There are 3 stops, hence Sleep)
Code:
# Jedi Knight Cog Script # # myspeeder.cog # # The speeder will go to all frames & loop from to 0 when # a ghost position is activated (ghost pos=near computer screen). # # [F-Body] # # This cog was not made or supported by LucasArts Entertainment Company symbols message activate message arrived thing speeder linkid=1 thing ghost_activate linkid=2 flex sleeptime=3.0 local end code activate: if (IsThingMoving(speeder)) return; if (GetSenderId() != 2) return; if (GetCurFrame(speeder) == 0) { MoveToFrame(speeder, 1, 8); } return; arrived: if (GetCurFrame(speeder) == 1) { MoveToFrame(speeder, 2, 10); } if (GetCurFrame(speeder) == 2) { MoveToFrame(speeder, 3, 14); } if (GetCurFrame(speeder) == 3) { Sleep(sleeptime); MoveToFrame(speeder, 4, 16); } if (GetCurFrame(speeder) == 4) { MoveToFrame(speeder, 5, 8); } if (GetCurFrame(speeder) == 5) { MoveToFrame(speeder, 6, 10); } if (GetCurFrame(speeder) == 6) { MoveToFrame(speeder, 7, 10); } if (GetCurFrame(speeder) == 7) { MoveToFrame(speeder, 8, 8); } if (GetCurFrame(speeder) == 8) { MoveToFrame(speeder, 9, 16); } if (GetCurFrame(speeder) == 9) { MoveToFrame(speeder, 10, 20); } if (GetCurFrame(speeder) == 10) { MoveToFrame(speeder, 11, 25); } if (GetCurFrame(speeder) == 11) { MoveToFrame(speeder, 12, 25); } if (GetCurFrame(speeder) == 12) { MoveToFrame(speeder, 13, 16); } if (GetCurFrame(speeder) == 13) { MoveToFrame(speeder, 14, 12); } if (GetCurFrame(speeder) == 14) { Sleep(sleeptime); MoveToFrame(speeder, 15, 8); } if (GetCurFrame(speeder) == 15) { MoveToFrame(speeder, 0, 16); } if (GetCurFrame(speeder) == 0) { Sleep(sleeptime); MoveToFrame(speeder, 1, 8); } return; end
------------------
nil nip nada zip zero naught lip zil
This is retarded, and I mean drooling at the mouth