Solved. Alleluiah !
So, this is the osiris part:
Code
IF
CharacterLootedCharacterCorpse(_Player,_Corpse)
AND
CharacterIsPlayer(_Player,1)
THEN
DB_CharacterCorpseToRemove(_Corpse);
UserSetFlag(_Corpse,"corpse_loot_interaction");
ProcObjectTimer((CHARACTERGUID)_Corpse,"delayUntildestroyCorpse",60000);


PROC
ProcObjectTimerFinished((CHARACTERGUID)_Corpse,"delayUntildestroyCorpse")
AND
DB_CharacterCorpseToRemove(_Corpse)
THEN
UserSetFlag((CHARACTERGUID)_Corpse,"remove_corpse");
NOT DB_CharacterCorpseToRemove(_Corpse);


And this is the script part, attached to the character:
Code
INIT
	CHARACTER:__Me
	
EVENTS
EVENT OnDeathStartTimer
ON
	OnCharacterFlagSet("remove_corpse",__Me)
ACTIONS	
	CharacterDestroy(__Me)


Cheers.

Last edited by Cromcrom; 13/10/17 08:13 PM.

Un chemin de 1000 lieues commence par un premier pas.

Project:
Steam workshop Frontiere