Is there any insta-kill action?

Void Animates

Just a guy who loves... EVERYTHING!
Is there any way to make it if more than 0 rings are collected, it will damage the player?
and Is there any insta-kill action?
 
Last edited:
Is there any way to make it if more than 0 rings are collected, it will damage the player?
and Is there any insta-kill action?
pretty sure that doing fake rings or making a lua that change ring behaviour can work
unfortunately i cant help better i understand no shit bout lua
 
Is there any way to make it if more than 0 rings are collected, it will damage the player?
and Is there any insta-kill action?
Yeah there is:

The Functions:
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
 
Yeah there is:

The Functions:
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
i'm confused on the inflictor part of the script, what do i put there? do I do it with a player_t?
 
i'm confused on the inflictor part of the script, what do i put there? do I do it with a player_t?
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)
 

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top