Page 1 of 1

Timer to create 2 Actors

PostPosted: Mon Aug 14, 2006 2:44 am
by HillBilly
I am trying to get a timer to create 2 actors. I can get it to make 1 at a time, but not both at the same time.

What I am wanting is to have a man with a parachute jump out of a plane. I need to keep it as 2 actors. I have set up the man as the parent of the parachute, and in the timer create actor I have tried about all posible combinations. I can only get 1 or the other to be created. If I have the timer make the parachute and then select the man as the parent in the timer I do not get anything.

Any ideas would be great.

PostPosted: Mon Aug 14, 2006 8:02 am
by Novice
In the parachute create actor event add
Code: Select all
CreateActor("Man", "ManAnim", "Parachute", "no path", 0, 10, false);

Change "man" to the name of your actor, change "ManAnim" to the name of his animation and "Parachute" to the name of your parachute actor wich will be the parent.
The 10 is there to make the man appear sligtly below the parachute.

PostPosted: Mon Aug 14, 2006 7:50 pm
by HillBilly
OK, is this what I sould put into the script editor. Then have the timer run the script? Right?

PostPosted: Mon Aug 14, 2006 8:20 pm
by makslane
In the Timer event, put the script code

PostPosted: Mon Aug 14, 2006 9:46 pm
by HillBilly
Messed something up still.

In Actor Control

Events ADD
Select TIMER
Select the timer that I want to use
then ADD ACTION
then SCRIPT EDITOR
Then enter the script, and IMEDIATE ACTION right?

PostPosted: Mon Aug 14, 2006 10:01 pm
by makslane
Yes