Frictional Games Forum (read-only)

Full Version: Script problem help needed
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
My script has some serious problems and i dont know how to solve em Angry !
if u guys have any ideas tell me ! Big Grin
You have some serious mistakes.
You don't put ';' when creating a function. Only when calling.

Like this:

void ThisIsAFunction(these are function parameters)
{
there are things that I want function to do;
}

Now call this function:

void OnStart() // or OnEnter, or in another function, whatever.
{
ThisIsAFunction(parameters for this function);
}