Author Topic: Subsystem component linked destruction?  (Read 1022 times)

0 Members and 1 Guest are viewing this topic.

Offline JSRNerdo

  • [`_`]/
  • 29
  • Gone!
Subsystem component linked destruction?
Basically, let's say I have a ship with modelled subsystem X which may or may not spin, and several turrets, maybe an engine, maybe some sensors too on that modelled subsystem. How would I go around having all the turrets and such on it blow up when the modelled subsystem blows up because I don't want ghost turrets attached to a dead subsystem firing basically and engine effects from a blown off part of the ship?
Former Inferno lead, BTA fredder-ish and DE fredder. Driven out by ordinary fascists the_e, aesaar and general battuta. Will return if they're ever removed.

 

Offline The E

  • He's Ebeneezer Goode
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Re: Subsystem component linked destruction?
This can be done with sexps or with lua scripting.
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Subsystem component linked destruction?
The event you need for this is pretty simple.

when-argument
- any-of
-- List of ships with those subsystems
- is-subsystem-destroyed-delay
-- <argument>
-- Name of subsystem
-- 0
- set-subsytem-strength
-- Do this for all the subsystems you want destroyed
- invalidate argument
-- <argument>

Then just set the trigger count to equal the number of ships in the mission.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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