Global refactor
This commit is contained in:
parent
3868af29e3
commit
0589ca4e23
180 changed files with 249 additions and 401 deletions
12
weapons/molikman/molik/molik.gd
Normal file
12
weapons/molikman/molik/molik.gd
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
extends RigidBody3D
|
||||
|
||||
|
||||
var contacts: int = 0
|
||||
|
||||
func _on_body_entered(_body: Node) -> void:
|
||||
contacts += 1
|
||||
if contacts > 2:
|
||||
var grenade = load("res://scenes/projectiles/molikman/molikman_molotov_fire.tscn").instantiate()
|
||||
Session.dynamic_objects_parent.add_child(grenade,true)
|
||||
grenade.global_position = global_position
|
||||
queue_free()
|
||||
Loading…
Add table
Add a link
Reference in a new issue