mtd/PCs/Universal/ClassCards/Sniper/scopedweapon.gd
2023-11-09 17:56:08 +11:00

16 lines
281 B
GDScript

extends Weapon
class_name ScopedWeapon
var scope_mask : Texture
func hold_second_trigger():
super.hold_second_trigger()
$CanvasLayer.set_visible(true)
hero.set_zoom_factor(3.0)
func release_second_trigger():
super.release_second_trigger()
$CanvasLayer.set_visible(false)