I am having a bit of bother with one of my papyrus scripts and hoped to get some help here!
What I have so far is;
- A script that is used with newly created trigger box
- Script option to use a an object in the render window as a 'fire trigger' - the 'TrapOilPool01' object is probably the best example for now.
What I want to do - it must be in the script attached to the trigger box and not a separate script for the oil trap;
- If the oil trap is used (destroyed) then give a message to that effect - such as "You destroyed the oil trap."
- My 'trigger' script has a property for 'oiltrapused'
- I select that property
- I 'Pick Reference in Render Window' and double click on the 'TrapOilPool01' object in the render window to select it
- The script has to react if that oil trap is used - ignited - destroyed
Adding a notification or messagebox when the oil trap is destroyed (I'm not talking about 'disable' - I mean destroyed - as in gone for good kind of thing) is easy enough to do I just need to detect when the oil trap is destroyed (used).
I have tried 'GetCurrentDestructionStage' without luck and suspect that is because I am using a script property referenct to the 'TrapOilPool01' rather than the actual 'TrapOilPool01'.
So, If any of you can enlighten me as to how to do this, it would be a great help. (There is a pun in there somewhere!)
As some of you may have guessed, this is part of a bigger mod!
Edit: slight editions made and for formatting.

