I am working on a modification to our housing system where traps placed in a player's dynamically created house (Hunter's Housing system) get recreated when the building is re-entered. I've got it working, for the most part, as intended. However, I'm hoping someone can provide some guidance on how I can set a trap to 'friendly' or green to its creator if they re-enter the building. Basically, I'm looking to mimic the same behavior as if the PC had just placed the trap for the first time - where it shows up green for them and red for everyone else who detects it.
It appears that the CreateTrapXXX functions, while allowing for the thing to be spawned to one of the standard factions, won't allow a trap to be created as friendly to one person, and hostile to others. Does anyone know of a way that, via script (or maybe NWNX?) a trap can be created as friendly to one person?