12 lines
243 B
GDScript3
Raw Normal View History

2019-11-22 11:11:10 +01:00
extends StaticBody
2019-12-14 21:05:09 +01:00
onready var leverMesh = get_node("LeverMesh")
onready var outline = get_node("LeverMesh/Outline") as MeshInstance
2019-11-22 11:11:10 +01:00
2019-12-14 21:05:09 +01:00
var IsOn = false
2019-11-22 11:11:10 +01:00
2019-12-14 21:05:09 +01:00
func do_interact(var player):
set_scale(Vector3(1, 1 if IsOn else -1, 1))
IsOn = !IsOn