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 question
Alexander Offline
Junior Member

Posts: 22
Threads: 2
Joined: Sep 2010
Reputation: 0
#4
RE: Scripting question

(10-06-2010, 07:34 PM)HakePT Wrote: (string &in asParent, string &in asChild, int alState)

These are the parameters of a function. A function receives parameters and does something with them.

Void functionadd(int a, int b, int x) /// int describes the type of data in this case integer or a normal number, "a", "x" and "b" are the names of the numbers)
{
x=a+b; //adds "a" and "b" and places that value in "x"
}

If for example you called: "functionadd(5,4,x);"
x would become 9.

So basically your function receives 3 parameters:
string &in asParent //a text that identifies the parent ("player" for example) | string==text
string &in asChild //a text that identifies the child ("key1" for example)
int alState //a number that identifies the state (state "1","2", etc) | int==number
As to what the function does depends on the description. Probably something to change the parent or the child when they interact/collide.

Thanks Smile

And off topic.. Did anyone else see what Frictional named the brutes in 15_prison_south..

"im_in_a_bad_mood"
"im_just_cute_and_happy"

xD
10-06-2010, 07:54 PM
Find


Messages In This Thread
Scripting question - by Alexander - 10-06-2010, 07:12 PM
RE: Scripting question - by HakePT - 10-06-2010, 07:34 PM
RE: Scripting question - by Frontcannon - 10-06-2010, 07:42 PM
RE: Scripting question - by Alexander - 10-06-2010, 07:54 PM
RE: Scripting question - by einfrnirdyr - 10-06-2010, 11:16 PM
RE: Scripting question - by Kyle - 10-07-2010, 10:41 PM
RE: Scripting question - by Blackhand - 10-08-2010, 01:03 PM
RE: Scripting question - by DamnNoHtml - 10-11-2010, 06:14 AM



Users browsing this thread: 1 Guest(s)