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

9 lines
222 B
GDScript

extends MeshInstance
var has_played_animation = false
func _on_Area_body_entered(body: Node):
if body.get_name() == "camerabody":
get_active_material(0).set_shader_param("start_time", Time.get_ticks_msec() / 1000.0)