Page 1 of 1

can you make a random comend on GE

PostPosted: Fri Jul 01, 2005 10:58 pm
by Game A Gogo
Can you make a random comend like:
random();

if yes, how??

PostPosted: Sat Jul 02, 2005 12:08 am
by brutalDeluxe

PostPosted: Sat Jul 02, 2005 12:17 am
by Game A Gogo
But where do i put the comend line(Like the actions)

PostPosted: Sat Jul 02, 2005 3:59 am
by jazz_e_bob
What are you trying to make?

PostPosted: Sat Jul 02, 2005 4:49 pm
by Game A Gogo
A turret

PostPosted: Sat Jul 02, 2005 4:52 pm
by Game A Gogo
I want to make a turret shoots at Mainship sometime.

Like:

int dicetrow ( rand(6) + 1 );
{
Createactor(BlaBlaBla...)
}

PostPosted: Sat Jul 02, 2005 10:02 pm
by jazz_e_bob
That's an easy one. :-)
Do the random timing with a randomised timer!

On Create Turret
Create Timer ( random/forever )

Then...

On Turret Timer
Create Turret Bullet

Demo here:
http://www.artsystems.com.au/game%20editor/randomTurretDemo.ged

PostPosted: Sat Jul 02, 2005 10:12 pm
by Game A Gogo
Tanks very much, its just im not that good in script

PostPosted: Sat Jul 02, 2005 10:53 pm
by jazz_e_bob
The demo I made uses script.

You could probably do it without script if you wanted to.

( I just like using script. )