-
Gothic engine has most likely unfinished built-in feature which fades away dead Npcs and removes their bodies
-
this feature uses API function
C_Npc_IsSummonedto recognize which creatures (I expect mostly summoned) can be faded away -
you can however use
oCNpc_StartFadeAway(self);on any Npc that you want to fade away. (for example fromZS_Deadstate, or from whenever you want 😄)
hero game will crash if you call it with player.
Init function: G12_FadeAway_Init();
You can use these extra functions to work with fade away feature:
//fadeAwayTimeF is Ikarus float miliseconds mkf(8000) - 8 seconds
void oCNpc_StartFadeAway(var int slfInstance); //Npc will fade away (default engine time 5s)
void oCNpc_StartFadeAway_Ext(var int slfInstance, var int fadeAwayTimeF); //Npc will fade away, but you can specify time by yourself
int oCNpc_IsFadingAway(var int slfInstance); //returns true if Npc is fading away