Q: Passing actor animation to global script

Game Editor comments and discussion.

Q: Passing actor animation to global script

Postby zupernoc » Mon Jun 19, 2006 2:11 am

Is one able to pass a string of an action animation to a global script, for use in a createactor statement?
zupernoc
 
Posts: 17
Joined: Thu Jun 01, 2006 9:12 pm
Score: 0 Give a positive score

Postby makslane » Mon Jun 19, 2006 9:11 pm

You can create a function in the global code, that receive a string:

Code: Select all
void CallAnimation(char *name)
{
//Your code here
}


In the script editor, you will call:

Code: Select all
CallAnimation("The name of your animation");
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby zupernoc » Mon Jun 19, 2006 11:32 pm

Thank you!
zupernoc
 
Posts: 17
Joined: Thu Jun 01, 2006 9:12 pm
Score: 0 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron