Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Scripting definitions?
Ouroboros Offline
Junior Member

Posts: 20
Threads: 0
Joined: Jul 2011
Reputation: 0
#2
RE: Scripting definitions?

If you're asking what I think you're asking, functions can be bool, int, and so on and at the end have "return(a number or true/false);" at the end, which gives that to a variable somewhere else. Void means that it doesn't have a value to give to a variable.

If works by checking if something is true or not.

if(A == B) {do something}
else {something else}

If A had a value equal to B then it would do the first thing, if not then it would do the other thing. Of course adding else is optional.

Is that what you were asking? If it is, I can post more about some things you can do with if statements.
(This post was last modified: 07-18-2011, 08:45 AM by Ouroboros.)
07-18-2011, 08:44 AM
Find


Messages In This Thread
Scripting definitions? - by Rel - 07-18-2011, 08:31 AM
RE: Scripting definitions? - by Ouroboros - 07-18-2011, 08:44 AM
RE: Scripting definitions? - by Rel - 07-18-2011, 09:31 AM
RE: Scripting definitions? - by Tanshaydar - 07-18-2011, 08:45 AM
RE: Scripting definitions? - by Tanshaydar - 07-18-2011, 09:41 AM



Users browsing this thread: 1 Guest(s)