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
Script help
DRedshot Offline
Senior Member

Posts: 374
Threads: 23
Joined: Jun 2011
Reputation: 11
#3
RE: Script help

Thanks very much, I've been wanting to do this for a long while! hopefully my scripting will get a lot easier from now on. Thanks.
I may as well ask another question in this thread since its new:
what if instead of using
void func();

i used
int Func();

I know i'd have to use return int;
but what else would i have to do? can any function be an int, or a string for that matter? or do i have to state something. Also, how would i get the return value later?
for example
int MyFunction()
{
// Some scripts
return 1;
}

how would i get the return value to use in another part of my script? thanks

(This post was last modified: 07-29-2011, 12:27 AM by DRedshot.)
07-28-2011, 11:52 PM
Find


Messages In This Thread
Script help - by DRedshot - 07-28-2011, 09:35 PM
RE: Script help - by palistov - 07-28-2011, 10:07 PM
RE: Script help - by DRedshot - 07-28-2011, 11:52 PM
RE: Script help - by Your Computer - 07-29-2011, 04:13 AM
RE: Script help - by palistov - 07-29-2011, 07:28 AM
RE: Script help - by DRedshot - 07-29-2011, 11:08 AM
RE: Script help - by palistov - 07-29-2011, 01:24 PM



Users browsing this thread: 2 Guest(s)