Jump to content

What is wrong with this trap script


oc3

Recommended Posts

Time to beg for help again! This script is for a large boulder that when it strikes the player or NPC, causes them to fly backward as a ragdoll and after 3 seconds get up. Everything else about the script works Fine for now. The only part I need help with is knocking out the actor. The boulder pushes them back a bit but does not do the ragdoll thing....

Thanks!

 

EDIT: Don't pay too much attention to the indentation. The editor F***ed it all up when I pasted. I fixed it the best I could, but the editor is seriously lacking in usability.

 

 

 

  Reveal hidden contents

 

Link to comment
Share on other sites

This may not be possible as I intended. It looks like the trapupdate system is hard coded to only allow certain special variables for trap damage.

 

I was hoping that by putting the modactorvalue function under trapupdate that it would work without an actor reference (since the trap already knows what hit it) but it doesn't work.

 

Unfortunately, I can't even use getactionref to find out what is in contact with the trap since that is only useful inside an onactivate block.

And since the player and other creatures are both present, the script must know who hit the boulder to use modav.

 

I wonder if anyone knows how to modify the trapupdate system to allow new variables like pushback pushactoraway or something else that would give a ragdoll effect.

Edited by oc3
Link to comment
Share on other sites

  • Recently Browsing   0 members

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