Tiggers.no.tail wrote...
Greetings!
I'm trying to find the proper Accessor method to return the person who last triggered a trap. i.e., someone is attempting to disarm a trap, but they fail and it goes off. also, is that the same as if someone just happens to walk over it?
Yes it is.
When a trap activates to [attempt to] cause harm to a victim, for any reason, always a very specific script is executed.
If you open your
Traps.2da file you can see a complete list of scripts run for each trap in game.
Also, all the stock bioware trap scripts have _t1_ in their filename. It will be quick to find them with the script editor.
Anyway... from inside the trap script you can easily learn who is the trap activator (the victim to take its brunt).
From there you do what you want.
Keep in mind that, within those scripts, OBJECT_SELF is always the very Trap object.
A trap object is always one of three possible things: a Door object, a Placeable object, or a Trigger object.
Post questions if you require more help.
-fox