Advertisement
upoupo0201

Untitled

Mar 19th, 2022
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. on left click:
  2. if player is holding bow:
  3. shoot arrow from player at speed 2
  4. set {explode.%shooter%} to true
  5. set {arrows::%projectile%} to true
  6.  
  7. on projectile hit:
  8. if projectile is an arrow:
  9. if {explode.%shooter%} is true:
  10. if {arrows::%projectile%} is true:
  11. create explosion of force 3 at projectile
  12. set {explode.%shooter%} to false
  13. delete {arrows::%projectile%}
  14. delete projectile
  15.  
  16. on join:
  17. set {explode.%player%} to false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement