HARM_TYPE_PROJECTILE_USED

Post here for help and support regarding LunaLua and SMBX2's libraries and features.
DrMekar
Eerie
Eerie
Posts: 759
Joined: Sat Apr 08, 2017 7:16 am
Flair: CUSTOM CHARACTER CREATOR
Contact:

HARM_TYPE_PROJECTILE_USED

Postby DrMekar » Tue Feb 09, 2021 5:11 am

My next NPC is going to fly constandly, though the only Harmtype I want is Projectile Used. Unfortunatly throwing Blocks aren't doing it any harm. This is the Code:
https://pastebin.com/rGKSPSD5

Enjl
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9491
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Orphion Egamalenitar Osmos IV, Esq.

Re: HARM_TYPE_PROJECTILE_USED

Postby Enjl » Tue Feb 09, 2021 5:33 am

PROJECTILE_USED refers to the NPC being the projectile, not getting hit by it. NPC is the harm type for getting hit by a projectile (among like 200 other things).

DrMekar
Eerie
Eerie
Posts: 759
Joined: Sat Apr 08, 2017 7:16 am
Flair: CUSTOM CHARACTER CREATOR
Contact:

Re: HARM_TYPE_PROJECTILE_USED

Postby DrMekar » Tue Feb 09, 2021 5:49 am

Enjl wrote:
Tue Feb 09, 2021 5:33 am
PROJECTILE_USED refers to the NPC being the projectile, not getting hit by it. NPC is the harm type for getting hit by a projectile (among like 200 other things).
Okay. I changed it to NPC, though the result remains the same. (I changed it in all Places of course.)


Return to “LunaLua Help”

Who is online

Users browsing this forum: cato and 2 guests