meat_madness_redux/godot/effects/npc/wall_struggler/WallStruggler.gd

9 lines
222 B
GDScript3
Raw Permalink Normal View History

2022-12-03 14:15:53 -07:00
extends MeshInstance
var has_played_animation = false
func _on_Area_body_entered(body: Node):
2023-01-03 17:08:43 -07:00
if body.get_name() == "camerabody":
2022-12-03 14:15:53 -07:00
get_active_material(0).set_shader_param("start_time", Time.get_ticks_msec() / 1000.0)