Jump to content

Trying to get a corpse to trigger a cubic activator


trashgarbage666

Recommended Posts

I'm trying to make NPCs smoke and take damage when they stand in fire. My idea so far is to place a cubic activator in the fire, give it a script with an OnTriggerEnter and OnTriggerLeave block, and have those blocks toggle a spell on NPCs that enter and exit. It works like a charm, but only if the NPC is alive. I was kinda hoping I could throw dead NPCs into the fire and watch them burn, but it seems that corpses don't trigger OnTrigger blocks.

 

Maybe someone here knows a different method or script block I could use for corpses?

 

Thanks for reading!

Link to comment
Share on other sites

The Esteban quest triggers off of the player entering the trigger area. It doesn't trigger off of the corpse.

 

The script is VMcCarranCorpseActivatorScript if you want to take a look at it. It uses IsPlayerGrabbedRef to see if the player is grabbing the corpse when entering the trigger.

 

I don't think it helps punchbattle much, unfortunately.

Link to comment
Share on other sites

Hmmm ... but maybe using "GetPlayerGrabbedRef" is the way to do it ?

 

Since possibly it is not working because the player is what is triggering the Enter block , thereby the corpse cannot get the effect added ?

 

But if corpses won't trigger it , then could still get the GrabbedRef like this in same script with its own block ...

 

~~~~~~~~~~~~~~~~~~~~~~~~

Scn MyTriggerScript

 

Ref rCorpse

 

Begin OnTriggerEnter PlayerRef

 

Set rCorpse to GetPlayerGrabbedRef

If GetDistance rCorpse <= 25

rCorpse.CIOS MyFireEffect

endif

End

~~~~~~~~~~~~~~~~~~~~~~~~~~~

 

Or some other convoluted way , because possibly an actor effect will no longer work when they are dead ???

Link to comment
Share on other sites

Sorry for the long absence! The day after I posted this, I suddenly got really busy. But I'm back now, and it looks like you guys were able to come up with lots of different suggestions in the meantime! I'll report back later to let you guys know if I had any luck.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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