Author Topic: Corpse not dissappearing  (Read 509 times)

Legacy_Eagles Talon

  • Full Member
  • ***
  • Posts: 192
  • Karma: +0/-0
Corpse not dissappearing
« on: March 23, 2011, 12:23:29 pm »


               Greetings,

I seem to be having an issue with certain of the newer CEP creatures that once they are slain, their bodies say around forever.  The clean-up scripts do not remove them and even if fully looted the bodies remain.  Any suggestions?
               
               

               
            

Legacy_420

  • Sr. Member
  • ****
  • Posts: 370
  • Karma: +0/-0
Corpse not dissappearing
« Reply #1 on: March 23, 2011, 11:22:04 pm »


               I made a large number of the CEP creature blueprints. Which ones in particular are showing this problem? If the creature's OnSpawn script uses the SetIsDestroyable() function and the blueprint has the "Leaves Lootable Corpse" box checked that is probably the reason.

-420
               
               

               
            

Legacy_Eagles Talon

  • Full Member
  • ***
  • Posts: 192
  • Karma: +0/-0
Corpse not dissappearing
« Reply #2 on: March 23, 2011, 11:33:28 pm »


               Right off the top, most recent uses are:  Elephants, Dire Elephants and Sabretooth Tigers (there are other older CEP creatures that have done the same thin, I just can't remember them at the moment).  We are generally using Jaspers AI scripts for creatures and have not modified them much if at all.  You now know everything I know about the problem. '<img'>
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Corpse not dissappearing
« Reply #3 on: March 23, 2011, 11:57:24 pm »


               Jaspers' AI uses SetIsDestroyable in OnSpawn...
               
               

               


                     Modifié par ShaDoOoW, 23 mars 2011 - 11:57 .
                     
                  


            

Legacy_Eagles Talon

  • Full Member
  • ***
  • Posts: 192
  • Karma: +0/-0
Corpse not dissappearing
« Reply #4 on: March 24, 2011, 01:46:27 am »


               Ok, so we want them to have lootable corpses as they drop hides for crafting and meat for food.  What are the options?  Can the script be changed to not have SetIsDestroable or is that an intregral part of the script?  I know little of scripting (yet) but can probably modify with direction.
               
               

               
            

Legacy_kalbaern

  • Hero Member
  • *****
  • Posts: 1531
  • Karma: +0/-0
Corpse not dissappearing
« Reply #5 on: March 24, 2011, 02:03:49 am »


               Try setting them in the OnSpawn event to: SetIsDestroyable(TRUE, FALSE, TRUE);

If other NPCs with hgh enough levels should be able to cast raise on them them set it as : SetIsDestroyable(TRUE, TRUE, TRUE);
               
               

               


                     Modifié par kalbaern, 24 mars 2011 - 02:05 .