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

16 lines
281 B
GDScript3
Raw Normal View History

extends Weapon
class_name ScopedWeapon
var scope_mask : Texture
func hold_second_trigger():
super.hold_second_trigger()
$CanvasLayer.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()
$CanvasLayer.set_visible(false)