mtd/PCs/Universal/ClassCards/Sniper/weapon_sniper.gd

16 lines
296 B
GDScript3
Raw Normal View History

extends HitscanWeapon
class_name SniperWeapon
@export var scope_mask : CanvasLayer
func hold_second_trigger():
super.hold_second_trigger()
scope_mask.set_visible(true)
2023-11-09 17:56:08 +11:00
hero.set_zoom_factor(3.0)
func release_second_trigger():
super.release_second_trigger()
scope_mask.set_visible(false)