helicopterscript.c 604 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*!
  2. Base script class for helicopters.
  3. */
  4. class HelicopterScript extends HelicopterAuto
  5. {
  6. void HelicopterScript()
  7. {
  8. SetEventMask(EntityEvent.POSTSIMULATE);
  9. }
  10. override void EOnPostSimulate(IEntity other, float timeSlice)
  11. {
  12. }
  13. /*!
  14. Gets called everytime the game wants to start the engine.
  15. This callback is called on server only.
  16. \return true if the engine can start, false otherwise.
  17. */
  18. bool OnBeforeEngineStart()
  19. {
  20. return true;
  21. }
  22. //! Gets called everytime the engine starts.
  23. void OnEngineStart()
  24. {
  25. }
  26. //! Gets called everytime the engine stops.
  27. void OnEngineStop()
  28. {
  29. }
  30. };