Skip to content

Dead Deer

For the life of me, I can't get this deer to f***ing die permanently! I just want a perfectly good corpse that's not destroyed OnSpawn.

int DoOnce = GetLocalInt(OBJECT_SELF, GetTag(OBJECT_SELF));
if (DoOnce==TRUE) return;
SetLocalInt(OBJECT_SELF, GetTag(OBJECT_SELF), TRUE);



effect eFreeze = EffectCutsceneParalyze();
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eFreeze, OBJECT_SELF);

effect eDeath = EffectDeath();
DelayCommand(1.0, ApplyEffectToObject(DURATION_TYPE_PERMANENT, eDeath, OBJECT_SELF));

Help... I'm going nutZ on this one. It was working at one time, but I've since messed it up, and can't seem to remeber how I did it... :(

Comments

  • ProlericProleric Member Posts: 1,270
    You need to use SetIsDestroyable with the appropriate settings (see Lexicon) rather than paralysis.

    Ensure that the plot flag is not set in the template.
  • ZephiriusZephirius Member Posts: 411
    Got this from the Lexicon. It does the trick.
    Put it OnSpawn
    KillAndReplaceLootable(OBJECT_SELF, TRUE, FALSE);
    
  • ZephiriusZephirius Member Posts: 411
    forgot the include file,
    #include "x0_i0_corpses"
Sign In or Register to comment.