Author Topic: How to make a ship stealthy to the enemy?  (Read 1701 times)

0 Members and 1 Guest are viewing this topic.

Offline wistler

  • 28
How to make a ship stealthy to the enemy?
What features do I need to make the players ship stealthy from an AI enemy. I'm really looking for the ship to be invisible unless the primaries/secondaries are fired.

I assume it would involve writing a variable that will always come true if weapons are fired but... I'm not sure how to do it   :shaking:

(I'm pretty much looking to recreate the features of the Pegasus being invisible onto a stealth bomber).

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: How to make a ship stealthy to the enemy?
The ship-stealthy SEXP? The ship stealthy flag in the Ship Editor->Misc Properties?

:D
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline wistler

  • 28
Re: How to make a ship stealthy to the enemy?
ha  :p I'll try opening my eyes next time.

I'm writing an event where the ship becomes un-stealthy when x distance from enemy. Could I have that argument become untrue when the distance becomes y and have the ship stealthy again. And is there a way to make that event repeating, so it constantly becomes true and untrue throughout the mission?

(i suprise myself with the fact that English is actually my first language  :lol:)

 

Offline Enioch

  • 210
  • Alternative History Word Writer
Re: How to make a ship stealthy to the enemy?
You'll need 2 SEXPs:

Quote
When
 |-<
 |   |--distance
 |   |     |---whatever the stealthy fighter is
 |   |     |---<any hostile>     
 |   |--500                                ----->note: replace with actual distance in meters for ship to become un-stealthy
 |-ship-unstealthy
      |-whatever the stealthy fighter is

and

Quote
When
 |->
 |   |--distance
 |   |     |---whatever the stealthy fighter is
 |   |     |---<any hostile>     
 |   |--500                                ----->note: replace with actual distance in meters for ship to become stealthy
 |-ship-stealthy
      |-whatever the stealthy fighter is

give each of them a repeat count of 999 and you're all set. Hell, I doubt there will be any chance a player will fly in and out of range more than 999 times... :p
'Violence is the last refuge of the incompetent'  -Salvor Hardin, "Foundation"

So don't take a hammer to your computer. ;-)

 

Offline wistler

  • 28
Re: How to make a ship stealthy to the enemy?
I sort of worked out how to do it but thanks for the reply, good to know I'm on the right track  :). How do I give something a repeat count?

  

Offline Angelus

  • 210
  • The Angriest Angel
Re: How to make a ship stealthy to the enemy?
I sort of worked out how to do it but thanks for the reply, good to know I'm on the right track  :). How do I give something a repeat count?

Highlight the event you want to be repeated, then check the "Repeat Count" box right next to the event window.