Author Topic: Decay Timer Permanent?  (Read 268 times)

Legacy_Moranin

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
Decay Timer Permanent?
« on: January 19, 2011, 11:16:10 pm »


               Hello,

I was wondering if it was at all possible to create a script that would make a dead NPC's Decay Timer never run out?

Moranin
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Decay Timer Permanent?
« Reply #1 on: January 20, 2011, 01:00:15 am »


               SetIsDestroyable to FALSE either in OnSpawn or OnDeath
               
               

               
            

Legacy_GhostOfGod

  • Hero Member
  • *****
  • Posts: 1490
  • Karma: +0/-0
Decay Timer Permanent?
« Reply #2 on: January 20, 2011, 02:00:42 am »


               While on this subject, how would you then make it so that the corpse is destroyed if clicked on(has no loot) or if the loot is taken from it? This is one of those things I've just never known about.
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Decay Timer Permanent?
« Reply #3 on: January 20, 2011, 02:44:02 am »


               Well if you want that creature to have loot, forget this approach. This is usefull for creating environment, like dead bodys in area or to save resources (dead NPC do not run any scripts) with later ressurect.
               
               

               
            

Legacy_Moranin

  • Newbie
  • *
  • Posts: 10
  • Karma: +0/-0
Decay Timer Permanent?
« Reply #4 on: January 20, 2011, 03:05:24 am »


               Cheers!
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
Decay Timer Permanent?
« Reply #5 on: January 20, 2011, 03:53:59 am »


               

GhostOfGod wrote...

While on this subject, how would you then make it so that the corpse is destroyed if clicked on(has no loot) or if the loot is taken from it? This is one of those things I've just never known about.


This sounds to be the default behavior if you set the creature to leave a lootable corpse in the toolset.  If you are leaving bodybags then you can adjust the scripts on each bags blueprint to do what you want.
               
               

               
            

Legacy_GhostOfGod

  • Hero Member
  • *****
  • Posts: 1490
  • Karma: +0/-0
Decay Timer Permanent?
« Reply #6 on: January 20, 2011, 04:31:51 am »


               I was waaaaay over thinking this. haha. I'm going to blame it on my flu.