Due to human (non-bot) spam the first contribution of a user has to be reviewed and activated manually, all further contributions do not require this.
As long as a user does not have at least one reviewed and activated contribution, the user is unable to edit his profile, set a avatar, title picture or a signature.
-
Hi,
You missed the : [ICODE]SetAnimatedState("Fan", this.Operating && FanOn);[/ICODE] in the tutorial.
For your door, this line should be like :
SetAnimatedState("GlassDoor", this.Open);
I think you could place this line in [ICODE]ToggleOpen()[/ICODE] method.
In fact, "SetAnimatedState" will toggle your "GlassDoor" parameter in your controller and set it as the second parameter of SetAnimatedState, here this.Open.
Thanks @GeeknessFr , now the door is finally working!! , i'll keep moving forward on the mod. Now i just need to research a bit about how to create a new tech tree in order to store the multiple doors there.
Regards
-
I don't know if you did this... but like in the Ceiling Fan Tutorial (here : https://github.com/StrangeLoopGam…iling-Fan-Light) you need to add a "Parameter" to toggle your animation and catch the "OnActRight" in the .cs file to toggle this parameter in Unity Object.
The part of the tutorial for code : https://github.com/StrangeLoopGam…ing-server-code
...and for object setting in Unity : https://github.com/StrangeLoopGam…tion-controller
You can see this in "Animation Controller Setup" :
I hope this will help you.
Alles anzeigen
Hi @GeeknessFr ,
Thanks for your reply that tutorial helped a lot , now i have set correctly the animation inside unity and i modified the code to read out the animation controller parameter, however now i have another issue it seems like this parameter is not being read by the code itself , the ToggleOpen method is not beign called my thoughts are that the interaction context is empty or null i attached a couple of screenshots of my proyect in unity and the code itself so you can check it out.
Unity:
[Blockierte Grafik: https://preview.ibb.co/iQV477/inside_Unity.png]
CS code:
[Blockierte Grafik: https://preview.ibb.co/niQ477/inside_Code.png]
Best Regards
-
Hey , i was wondering if may i have a hand trying to understand how the object interaction works and the creation of new tech trees, on my unity project i'm using legacy animations for the opening and close states and i'm using the game .cs for doors, in-game everytime i right click the new door i can hear the sounds correctly however the animations are not showing up, i'm currently learning so this is my first try on building up a mod , i manage to get this far however now i'm stuck.
Object In game:
[Blockierte Grafik: https://preview.ibb.co/ix4aC7/test1x.png]
Best Regards