You can try to do something with events. Upon clicking button the event starts and in unity you make doors track that event. With that you can make so that unity plays animation attached to doors when the event is active. I don't know exactly how to do it since I've never done that but I'm like 90% sure it's possible to do with the method I told you
#Object reward
16 messages · Page 1 of 1 (latest)
I already know you can. But how do I make it impossible to interact with the door via the "F" button?
just make it a standard object without any special lines in .dat file
in unity it can look however you want
the function of this object is determinated via .dat file
And can I attach more than two animations to an object in unity?
"Interactability Binary_State" if this is not put in the .dat file, the animations won't run
You can put as many animations as you want
You put it if you want player to open them directly by pressing f on them. You will force play anjmations in unity with components
These are the scripts I put in. If I remove "Interactability Binary_State" from the config, this system stops working.
<@&553315866146766850>
@trim gulch have the npc global event hook open the door when the event is triggered (animation)
And set the button's interractability to reward said event
You won't need the IOBS event hook
okay, can you tell me how to do that, then?
You can make an animation and put it in an animator, then trigger the animation via the animator component in the npc global event hook
Already tried that and it didn't work.