Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var shot_held = false
- func _process(delta):
- var SHOOT = Input.is_action_pressed('player_shoot')
- if SHOOT and not shot_held:
- weapon.shoot() # do whatever you do when you shoot
- shot_held = SHOOT
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement