|
Post by drenyn on Apr 6, 2020 3:56:27 GMT
Hi All,
I'm currently trying to setup a door to open and/or close using the Action Button. Currently I've been able to setup the open using the TriggerGenericAction script and SimpleDoor script, but this doesn't give me the option to hit the action again and close the door, which is what I'm looking for. Anyone have ran into similar issues that might be able to point me in the right direction?
Thanks!
|
|
|
Post by drenyn on Apr 6, 2020 15:31:37 GMT
Hi All, I'm currently trying to setup a door to open and/or close using the Action Button. Currently I've been able to setup the open using the TriggerGenericAction script and SimpleDoor script, but this doesn't give me the option to hit the action again and close the door, which is what I'm looking for. Anyone have ran into similar issues that might be able to point me in the right direction? Thanks! For some reason the "Auto Close" on the SimpleDoor script isn't working when the "Open()" method is called from the TriggerGenericAction script. I think if I could get that to work, it would be a decent workaround. Anyone had this issue?
|
|
|
Post by Invector on Apr 6, 2020 19:50:19 GMT
The vSimpleDoor script is very veeery old, I think back when we first release the MeleeCombat, so it's not very optimized to work with new features such as the vTriggerGenericAction.
I will take a look to see if we can improve this script, but it was as the name suggests a 'simplee door' included just as an example for a specific case, ideally you should create your own door - but like I say I will take a look to at least make it work with the generic action
|
|
|
Post by drenyn on Apr 6, 2020 20:07:13 GMT
The vSimpleDoor script is very veeery old, I think back when we first release the MeleeCombat, so it's not very optimized to work with new features such as the vTriggerGenericAction. I will take a look to see if we can improve this script, but it was as the name suggests a 'simplee door' included just as an example for a specific case, ideally you should create your own door - but like I say I will take a look to at least make it work with the generic action Turned out the issue was the SimpleDoor script was looking for a collider as well. That got the AutoClose working, but yeah it would be great to just have one method called on the SimpleDoor script that would open if the door is closed and close if the door is open.
|
|