More Questions on keyDown function

Non-platform specific questions.

More Questions on keyDown function

Postby Just4Fun » Tue Jan 18, 2005 3:10 am

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
I've learned that I still have a lot to learn.

** Makslane == Genious **
Just4Fun
 
Posts: 524
Joined: Tue Jul 01, 2003 5:19 am
Location: USA: Washington State; West Coast
Score: 6 Give a positive score

Postby makslane » Tue Jan 18, 2005 6:44 pm

You can create a global code function:

void myFunction()
{
//your code here
}

And call myFunction() in the Script Editor
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest