Hard Light Productions Forums

Hosted Projects - Standalone => The Babylon Project => Topic started by: madaboutgames on March 15, 2006, 07:38:46 am

Title: Advanced fred questions
Post by: madaboutgames on March 15, 2006, 07:38:46 am
Just 2 questions I could need a little help with.

1. Is there a way (and if there is) how do I limit the controls of the player ship.  I want to enable the player ship to thrust left and right and fire, but not to be able to use other controls like speed, pitch, turn, afterburner etc  just left n right thrust and fire.  any ideas?

2. Is it possible to have a passive asteroid field with X number of asteroids, when all these asteroids are destroyed It would be able to return an event to true?

Cheers  ;)
Title: Re: Advanced fred questions
Post by: IPAndrews on March 15, 2006, 08:04:28 am
Just 2 questions I could need a little help with.
Quote
1. Is there a way (and if there is) how do I limit the controls of the player ship.  I want to enable the player ship to thrust left and right and fire, but not to be able to use other controls like speed, pitch, turn, afterburner etc  just left n right thrust and fire.  any ideas?

Only thing I can think of is telling Alpha 1 to use AI control and to play dead, then using key-pressed to create your own crude control system. Using sexps to change the ship position.

Quote
2. Is it possible to have a passive asteroid field with X number of asteroids, when all these asteroids are destroyed It would be able to return an event to true?

No they regenerate. You could use create-ship in conjunction with random numbers to create ships at random locations though. Then possibly use a sexp that returns the percentage of a ship class destroyed to detect when 100% of the asteroids have been destroyed. This is all theoretical and a bit dodgy.