x


UNITY Scripting - True and False not working!

I've seen a few others going around with this problem, but no fixes as of yet. in my Java script I have a problem, where the script is not recognizing "true" and "false". The script is below: alt text

This is quite annoying. I'm just learning how to use Unity, and I'm pretty sure that True and False are recognized commands. if anyone knows how to fix this, please share.

more ▼

asked Dec 05 '10 at 07:00 PM

David 17 gravatar image

David 17
2 2 2 3

Define "not working". Compiler error? The script isn't doing what you expect? Something else?

Dec 05 '10 at 09:21 PM Eagle32
(comments are locked)
10|3000 characters needed characters left

3 answers: sort voted first

True and false work just fine. If you're referring to syntax highlighting, that's up to whatever editor you're using, nothing to do with Unity.

more ▼

answered Dec 05 '10 at 07:24 PM

Eric5h5 gravatar image

Eric5h5
81.5k 42 133 529

The highlighting isn't working, I understand that doesn't mean true and false are not working, but they don't seem to work either.

Dec 05 '10 at 07:42 PM David 17

Hey guys, figured it out, thanks for the help Eric, I actually had fallout in caps on the tags, oops. XD thanks.

Dec 05 '10 at 09:57 PM David 17
(comments are locked)
10|3000 characters needed characters left

Hey everyone, I'm David, I decided to register, and use a different account name, anyway, in Tags, the "Fallout" was type like so, and had a cap, yet in the script it did not, if anyone gets this error, please check both to make sure they are IDENTICAL!

Thanks.

someone can close this now.

more ▼

answered Dec 05 '10 at 10:19 PM

David 17 gravatar image

David 17
2 2 2 3

theres a delete button below your question

Jan 21 '11 at 11:35 PM fireDude67
(comments are locked)
10|3000 characters needed characters left

Don't you need to set the variable as boolean, and assign it false later?

more ▼

answered Jan 21 '11 at 11:09 PM

AVividLight gravatar image

AVividLight
1.9k 68 100 129

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x5273
x3892
x35
x28
x18

asked: Dec 05 '10 at 07:00 PM

Seen: 2040 times

Last Updated: Dec 05 '10 at 07:00 PM