Hi there, So i have created a character script which should apply invisibility for 1 round when killing an enemy. But the problem is that after a kill invisibility is applied but it is removed instantly again. That is what i tried:
The INVISIBLE status gets removed by code from characters when they hit something. My guess is that this "did they hit something" check happens after applying the damage that triggers the Dying event for the hit character (which is what "OnDie" reacts to). The same holds for the Osiris CharacterKilledBy event. I think you'll have to cache the information about who killed the character, and then only apply the invisible status when the Osiris "CharacterDied" event arrives. I don't think there is an equivalent in behaviour script.