How to code gun?

veddnt

Active member
Joined
Jun 2, 2023
Messages
201
Player event( right click) -> if player is holding( iron hoe *ignore durabilty*) -> if player item has NOT delay -> set delay(5s) -> set location( current player location using game value(apple) and add 1 to y axis) -> spawn entity( set location to the previous location var allocated and set name to %player%_snowball) -> select obj %player%_snowball and launch forward with velocity you prefer

not the best but should work
 
Top