Jump to content
This site uses cookies! Learn More

This site uses cookies!

armedunity.com uses cookies to improve user experience.

By continuing to use this site, you agree to allow us to store cookies on your computer.

  • 0
jag9980

wht am i doin wrong in dis script?

Question

i just dont knw whts wrong wid this script? am i not supposed to use "=" in brackets?

Please login or register to see this code.

Share this post


Link to post
Share on other sites

14 answers to this question

Recommended Posts

  • 0

if (battlemode == true)

or just use if (battlemode) and if (!battlemode)

It's what pros use :d

Share this post


Link to post
Share on other sites

  • 0
Please login or register to see this code.

This will work :)

EDIT: Sorry for massive spacings, Notepad++ I'm new to it :d

Edited by Epic-Shot
  • Like 1

Share this post


Link to post
Share on other sites
  • 0

Your English is a.... LEARN THE ENGLISH !!!

The one of the rules of this forum is "You can only speak English or Latvian".

I really really don`t understand you,I don`t know if you are joking or what ? Try to learn the English better so everybody can understand you and your English looks like trolls one.

That is just a suggestion.

  • Like 1

Share this post


Link to post
Share on other sites
  • 0
Please login or register to see this quote.

Your English is bad too... So don't be talking back to him when yours is bad as well. And he is speaking in English so he's not breaking the rules.

Share this post


Link to post
Share on other sites
  • 0
Please login or register to see this quote. Its better to use else instead of another boolean check. Tiny performance increase and its a lot more cleaner with "else"

However there is an even more efficient way.

You can do

camera1.enabled = !battleMode;

camera2.enabled = battleMode;

But this may cause confusion for some beginners :P

Share this post


Link to post
Share on other sites
  • 0

alright, sorry for my english and thanks for the advice... 

now,  i built it further ,but.. i guess m messing up somewhere coz its not working ..

Please login or register to see this code.

Share this post


Link to post
Share on other sites
  • 0
Please login or register to see this quote.

GTFO !

It is not as bad as his.Please get the fuck off ! That was just a suggestion ! You are HATERS yeah that is the turth !

  • Like 1

Share this post


Link to post
Share on other sites
  • 0
Please login or register to see this quote.

At first you write complete bullshit and then you asking me, why you have so bad reputation. Not everyone here knows English perfectly. If you have problems with that, i can help you solve them.

Share this post


Link to post
Share on other sites
  • 0
Please login or register to see this quote.

#-O OMA omg you are also here ;D

 

Yeah  I really dont like those bad reputations I dont know why do I have them but I think that is not fair.Can you please reset my reputation point so I have 0 neutral point ?

I am sorry if I was rude but sometimes I get annoyed by someone.

 

Share this post


Link to post
Share on other sites
  • 0

It is waste of time, because you will write something "stupid" again and after few days your reputation will be again in TOP 5 :d

  • Like 1

Share this post


Link to post
Share on other sites
  • 0

Please login or register to see this code. P.S. with "GetKey" you should use KeyCode.

if(Input.GetKeyDown(KeyCode.Tab))

or

if(Input.GetButtonDown("tab"))

  • Like 1

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×
×
  • Create New...