This repository has been archived on 2022-01-09. You can view files and clone it, but cannot push or open issues/pull-requests.
2021-06-18 01:43:10 +02:00
|
|
|
extends Node3D
|
|
|
|
|
|
|
|
# Declare member variables here. Examples:
|
|
|
|
# var a = 2
|
|
|
|
# var b = "text"
|
|
|
|
|
|
|
|
#enum Trigger {TRIGGER_PRIMARY, TRIGGER_SECONDARY}
|
|
|
|
|
2021-06-18 02:36:20 +02:00
|
|
|
@remotesync func trigger(index: int, active: bool) -> void:
|
2021-06-18 01:43:10 +02:00
|
|
|
print("Weapon " + str(name) + ", Trigger " + str(index) + ", active: " + str(active))
|
|
|
|
|
|
|
|
if index == 0 and active:
|
2021-07-01 13:53:05 +02:00
|
|
|
$Flash/AnimationPlayer.play("Flash")
|
2021-06-18 01:43:10 +02:00
|
|
|
|
|
|
|
# Called when the node enters the scene tree for the first time.
|
|
|
|
func _ready():
|
|
|
|
pass # Replace with function body.
|
|
|
|
|
|
|
|
|
|
|
|
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
|
|
|
#func _process(delta):
|
|
|
|
# pass
|