Advertisement
Guest User

Untitled

a guest
Jan 24th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. ref AirdropAirstrip AirDropClass; // Class definition
  2.  
  3. //Code:
  4. void CustomMission()
  5. {
  6. AirDropClass = new AirdropAirstrip;
  7. }
  8.  
  9. float TimerSlice; // Timeslice
  10. override void OnUpdate(float timeslice)
  11. {
  12. super.OnUpdate(timeslice);
  13.  
  14. // FPS Fix
  15. TimerSlice += timeslice;
  16. if (TimerSlice >= AirDropClass.TimesliceMultiplyier)
  17. {
  18. AirDropClass.CreateAirDrop();
  19. TimerSlice = 0;
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement