Advertisement
Guest User

Untitled

a guest
May 27th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. rule("Create Static Teleporter Location")
  2. {
  3. event
  4. {
  5. Ongoing - Global;
  6. }
  7.  
  8. actions
  9. {
  10. Set Global Variable(C, Vector(0, 0, 0));
  11. Create Effect(All Players(All Teams), Orb, Blue, Global Variable(C), 1, Visible To);
  12. }
  13. }
  14.  
  15. rule("Create Receiving end location upon pressing Interact")
  16. {
  17. event
  18. {
  19. Ongoing - Each Player;
  20. All;
  21. Slot 0;
  22. }
  23.  
  24. conditions
  25. {
  26. Is Button Held(Event Player, Ability 2) == True;
  27. }
  28.  
  29. actions
  30. {
  31. Destroy Effect(Global Variable(B));
  32. Create Effect(All Players(All Teams), Orb, Blue, Event Player, 1, Visible To);
  33. Set Global Variable(B, Last Created Entity);
  34. Set Global Variable(A, Position Of(Event Player));
  35. }
  36. }
  37.  
  38. rule("Teleport player to Receiving end")
  39. {
  40. event
  41. {
  42. Ongoing - Each Player;
  43. All;
  44. All;
  45. }
  46.  
  47. conditions
  48. {
  49. Is Button Held(Event Player, Interact) == True;
  50. Distance Between(Position Of(Event Player), Vector(0, 0, 0)) <= 1;
  51. }
  52.  
  53. actions
  54. {
  55. Teleport(Event Player, Value In Array(Global Variable(A), 1));
  56. }
  57. }
  58.  
  59. rule("Teleport player to Starting end")
  60. {
  61. event
  62. {
  63. Ongoing - Each Player;
  64. All;
  65. All;
  66. }
  67.  
  68. conditions
  69. {
  70. Is Button Held(Event Player, Interact) == True;
  71. Distance Between(Position Of(Event Player), Vector(0, 0, 0)) <= 1;
  72. }
  73.  
  74. actions
  75. {
  76. Teleport(Event Player, Value In Array(Global Variable(C), 1));
  77. }
  78. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement