JohnEvans512 / UBSPMapTools

BSP map tools for Unity game engine.
MIT License
62 stars 10 forks source link

Trigger and door entities #2

Open jiDOK opened 1 year ago

jiDOK commented 1 year ago

Do you have an example of how to set up a brush_trigger that triggers a door? I've tried it but the target and exit target are not assigned to their fields. I 've looked at the code but couldn't quite understand it. I've managed to trigger a door by another door, as shown in your example, but found that the door also opens by clicking directly on it. Is there a way to prevent that? Thank you!

jiDOK commented 1 year ago

I think I've figured out the trigger part. I also made another modification where the objects are getting instantiated into a common parent, so that it can be deleted from the scene on reimport. I'm going to be testing it for a little while and then maybe do a pull request if that's cool. Thanks!

btarg commented 1 year ago

I had to write a lot of custom code to implement things properly, maybe I can share it with you if you need it. This repo is a good starting point but a lot of work needs to be done to improve it