iAd4m

Untitled

Apr 22nd, 2015
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. class EventHandlers {
  2. init="_this animate ['slideOut', 1]; _this animate ['laptopScreen', 1]";
  3. }
  4.  
  5. class UserActions
  6. {
  7. class PullRack
  8. {
  9. displayName = "Pull Rack";
  10. position = "user_trigger";
  11. priority = 0.4;
  12. radius = 3;
  13. onlyForPlayer = 1;
  14. condition = "((_this animationPhase 'slideOut') < 0.5) AND ((_this animationPhase 'laptopScreen') < 0.5)";
  15. statement = "_this animate [""slideOut"",0];";
  16. };
  17. class PushRack : PullRack
  18. {
  19. displayName = "Push Rack";
  20. condition = "((_this animationPhase 'slideOut') > 0.5) AND ((_this animationPhase 'laptopScreen') < 0.5)";
  21. statement = "_this animate [""slideOut"",1];";
  22. };
  23. class OpenLaptop : PullRack
  24. {
  25. displayName = "Open Laptop";
  26. condition = "((_this animationPhase 'laptopScreen') < 0.5) AND ((_this animationPhase 'slideOut') > 0.5)";
  27. statement = "_this animate [""slideOut"",0];";
  28. };
  29. class CloseLaptop : PullRack
  30. {
  31. displayName = "Close Laptop";
  32. condition = "((_this animationPhase 'laptopScreen') > 0.5) AND ((_this animationPhase 'slideOut') < 0.5))";
  33. statement = "_this animate [""slideOut"",1];";
  34. };
  35. };
Advertisement
Add Comment
Please, Sign In to add comment