P_DamageMobj(mobj_t mobj, inflictor, source, DMG_INSTAKILL) //This is good for players but also for default enemies/bosses
P_KillMobj(mobj_t mobj, inflictor, source) //This is what i use for Objects
P_DamageMobj(mobj_t mobj, inflictor, source, DMG_INSTAKILL) //This is good for players but also for default enemies/bosses
P_KillMobj(mobj_t mobj, inflictor, source) //This is what i use for Objects
Ok So mobj is the object damaged and inflictor is like who damaged you(it can be used to indicate that players killed the object or object killed the player) and source you can put the object or player there so like: P_DamageMobj(player.mo, enemy, enemy, DMG_INSTAKILL) it will mean that an enemy killed player with instakill(player will die by enemy)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.