Timer to create 2 Actors

Game Editor comments and discussion.

Timer to create 2 Actors

Postby HillBilly » Mon Aug 14, 2006 2:44 am

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.
HillBilly
 
Posts: 68
Joined: Thu Jun 08, 2006 4:31 am
Location: OHIO, USA
Score: 4 Give a positive score

Postby Novice » Mon Aug 14, 2006 8:02 am

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.
Why do i always get stuck?
User avatar
Novice
 
Posts: 399
Joined: Mon Aug 29, 2005 10:54 am
Location: Relative
Score: 5 Give a positive score

Postby HillBilly » Mon Aug 14, 2006 7:50 pm

OK, is this what I sould put into the script editor. Then have the timer run the script? Right?
HillBilly
 
Posts: 68
Joined: Thu Jun 08, 2006 4:31 am
Location: OHIO, USA
Score: 4 Give a positive score

Postby makslane » Mon Aug 14, 2006 8:20 pm

In the Timer event, put the script code
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby HillBilly » Mon Aug 14, 2006 9:46 pm

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?
HillBilly
 
Posts: 68
Joined: Thu Jun 08, 2006 4:31 am
Location: OHIO, USA
Score: 4 Give a positive score

Postby makslane » Mon Aug 14, 2006 10:01 pm

Yes
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest