Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: SF-Junky on March 13, 2021, 01:39:15 pm

Title: (How) does ship-subsys-vanish work?
Post by: SF-Junky on March 13, 2021, 01:39:15 pm
My understanding of this SEXP is that it, if applied to a turret, the submodel and subsystem completely disappear. However, it does not seem to have any effect.

Check the attached test mission. The SEXP should be executed when pressing [1]. Though when I try it nothing happens.

[attachment deleted to save space]
Title: Re: (How) does ship-subsys-vanish work?
Post by: 0rph3u5 on March 13, 2021, 02:30:28 pm
Intriguing.

To independently verify, I made a mission to test the behavior of ship-subsys-vanish compared to destroy-subsys-instantly - and ship-subsys-vanish doesn't seem to have any effect.

The desired effect mentioned above can however be achieved by combining destroy-subsys-instantly with ship-subsys-no-replace.

[attachment deleted to save space]
Title: Re: (How) does ship-subsys-vanish work?
Post by: AdmiralRalwood on March 13, 2021, 03:03:09 pm
This appears to be a documentation problem; the "vanished" flag doesn't do anything by itself, rather it modifies what happens to the subsystem when it's destroyed. Using ship-subsys-vanish is basically saying "when this subsystem dies, don't log it and don't create a fireball/debris"; it doesn't even stop the "-destroyed" subobject from showing, because that's what ship-subsys-no-replace is for.
Title: Re: (How) does ship-subsys-vanish work?
Post by: SF-Junky on March 14, 2021, 05:27:35 am
Ah, okay. That clearifies things, then. Thanks for the replies.  :) :yes: