forked from team-sg/hero-mark-2
added ms.x
This commit is contained in:
parent
2281627223
commit
739eb6e48a
4 changed files with 738 additions and 2 deletions
|
@ -43,7 +43,7 @@ func _physics_process(delta):
|
|||
if !shooting:
|
||||
# check for player in raycast
|
||||
var collider = shoot_cast.get_collider()
|
||||
if collider != null && collider.is_in_group("player"):
|
||||
if collider != null && (collider.is_in_group("player") or collider.is_in_group("msx")):
|
||||
# kill player and enter shooting state temporarily
|
||||
collider.get_parent().die()
|
||||
# play sound
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue