Skip to content

NPC Status Change/Possible?

ZephiriusZephirius Member Posts: 411
edited June 2021 in Builders - Scripting
Is it possible to label an NPC as dead even though he is uninjured?
I've got this guy who froze to death in a snowdrift, I just want his corpse to read "dead" not "uninjured"????
AssignCommand(OBJECT_SELF, ClearAllActions(TRUE));
    AssignCommand(OBJECT_SELF, SetCommandable(FALSE, OBJECT_SELF));

    effect eSkin = EffectVisualEffect(VFX_DUR_ICESKIN);
    DelayCommand(4.0, ApplyEffectToObject(DURATION_TYPE_PERMANENT, eSkin, OBJECT_SELF));


    effect eFreeze = EffectVisualEffect(VFX_DUR_FREEZE_ANIMATION);
    DelayCommand(3.0, ApplyEffectToObject(DURATION_TYPE_PERMANENT, eFreeze, OBJECT_SELF));

    //AssignCommand(OBJECT_SELF, ActionPlayAnimation(ANIMATION_LOOPING_SIT_CROSS, 1.0, 3.0));

    effect eKnock = EffectKnockdown();
    ApplyEffectToObject(DURATION_TYPE_PERMANENT, eKnock, OBJECT_SELF);

    //effect eDeath = EffectDeath(FALSE);
    //DelayCommand(5.0, ApplyEffectToObject(DURATION_TYPE_PERMANENT, eDeath, OBJECT_SELF));
}
Post edited by Zephirius on

Comments

  • ForSeriousForSerious Member Posts: 446
    No, I don't think you can.
    I'd copy what they do in Shadows of Undrentide with all the dead kobolds.
  • ProlericProleric Member Posts: 1,281
    edited June 2021
    EffectDeath() will do it. Since the guy is dead, presumably you don't need them to be uninjured?

    SetIsDestroyable() prior to death lets you tweak the corpse options if need be.
    Post edited by Proleric on
  • ZephiriusZephirius Member Posts: 411
    edited June 2021
    Thanks as always guys...

    You have no idea how much that was driving me mad. :)
    Dead guys aren't supposed to be walking around uninjured. It's unnatural! Witchcraft I tell you...

    It's official! My dead guys are officially dead and not uninjured. ;)
Sign In or Register to comment.