Page 1 of 1

More Questions on keyDown function

PostPosted: Tue Jan 18, 2005 3:10 am
by Just4Fun
Makslane:
I am using the keyDown function that you helped me code on three different actors in my little demo.

Is there a way to remove the three identical local actor functions and, instead, call on one global function instead? :shock:

TIA

PostPosted: Tue Jan 18, 2005 6:44 pm
by makslane
You can create a global code function:

void myFunction()
{
//your code here
}

And call myFunction() in the Script Editor