What script controls what happens when the player weapon collides with a monster?

Post Reply
mAnthon
Posts: 16
Joined: Thu Jun 20, 2019 5:06 pm

What script controls what happens when the player weapon collides with a monster?

Post by mAnthon » Tue Aug 27, 2019 5:56 pm

I'm using a script that shoots. I have the projectile set as "player weapon" and when it hits a monster, the monster disappears. I want to edit the script to play a certain sounds when it hits the monsters and maybe to trigger an explosion animation object. Where is this in the scripts? I know the code to make it play the sound, just not sure where to add it.
User avatar
Mugi
Posts: 717
Joined: Thu Dec 27, 2018 8:30 pm

Re: What script controls what happens when the player weapon collides with a monster?

Post by Mugi » Tue Aug 27, 2019 6:10 pm

handlemonsterhurt i suppose.

it should be assigned to "handle monster hurt" in scripts settings.
"what are you up to?" "Oh, not much... just... Parallaxing"
- Raftronaut
Post Reply