If / Else ?

Okay! I didn’t get a sh*t from this new system. I DON’T EVEN KNOW HOW TO MAKE A IF ELSE STATEMENT TO PLAY A ANIMATION.
Maybe it’s my fault but please help.

(I need a example statement)

Please stop to unnecessarily highlight your text in any way if you don’t have a good reason for it. It is very annoying to read. You can just type the question and indeed I won’t answer your question or help just because of that.

Sorry but I think I’ll go mad. It’s annoying. I don’t know anything about it! Can you help?

What does it even mean?

Yes, I can.

Watch this. Then you come back with a real/well explained question.

Ok. So as you can see , door is a bool and it’s on. I want to make code something like:

 if(door = false)
{
animation.play("dooropen")
} else
{
animation.play("doorclose")
}

2177872--144243--help.jpg

You’ll have to learn C# first I think. It’s clear you’re not used to programming in C# yet as the above code assigns door to false within the if statement.

I would also recommend playmaker asset if you would like to try a visual scripting solution.

1 Like