Jump to content

Getting spawned NPCs to delete on death


caramellcube

Recommended Posts

There's probably something simple I've overlooked but I want to spawn some NPCs but make sure they get deleted shortly after death, some melting away instantly with the plasma effect without leaving a goo pile, others vanishing the next time the player leaves the cell. I can do object scripting but haven't done anything much with NPCs before. Do I have to make a scripted base effect, link that to an actor effect, then give it them somehow?
Link to comment
Share on other sites

There's probably something simple I've overlooked but I want to spawn some NPCs but make sure they get deleted shortly after death, some melting away instantly with the plasma effect without leaving a goo pile, others vanishing the next time the player leaves the cell. I can do object scripting but haven't done anything much with NPCs before. Do I have to make a scripted base effect, link that to an actor effect, then give it them somehow?

 

NPC's use object scripts too. Just use the On Death block to enable a timer in the GameMode block, then another timer while the plasma effect is playing, then disable and markfordelete just before the plasma effect ends.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...