Thanks for the feedback mate.
I went and updated it. I have never used qtarget or nh-context, so honestly I just hoped for the best after reading the documentation for both while at work earlier today haha
Didn’t know it had to be unique, but I see now why it does. Your tweak will work fine, but I made it even simpler. Instead of 2 new variables to act as a counter and a zone name, I used the preexisting “index” key from the for loop.

exports["qtarget"]:AddBoxZone(elevatorName .. index, floor.coords, 5, 4, {

And I updated the SetEntityCoords function. So my rewrite should work a treat now.
Only thing missing are sound effects and that’s just a simple xsound or InteractSound function call. Enjoy! :spades:

1 Like