Hard Light Productions Forums
Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: dragonsniper on March 14, 2009, 09:33:34 am
-
I'm currently working on a mission, and I want a cruiser to have it's beams unlocked until the weapon subsystem on it is below 80% (or something like that.) The problem is, is that I have a SEXP set up to get it to lock the beams on the cruiser once the weapons health is down to a specific point, but the beams on the cruiser don't lock? :confused: Anybody have any hints on why that may be?
-
I think I fixed it... another SEXP is conflicting with it I think. But idea's would still be nice because I've had problems like this in the past.
-
when
<
hits-left-subsystem
<cruiser>
<subsystem's name>
true
80
beam-free-all
<cruiser>
(assuming that you didn't set "All ships beam-freed by default" in Mission Specs)
-
Thanks. In the first post I meant to say "locked" instead of "unlocked." Anyhow, I think I have it working now.
-
And a special :yes: for Mobius for remembering to include the optional 3rd argument in the Hits-left-subsystem SEXP. That one trips up so many people but the event simply wouldn't have worked properly without it.
-
I guess that's true. Thanks for the quick help.
-
And a special :yes: for Mobius for remembering to include the optional 3rd argument in the Hits-left-subsystem SEXP. That one trips up so many people but the event simply wouldn't have worked properly without it.
:D
-
when
<
hits-left-subsystem
<cruiser>
<subsystem's name>
true
80
beam-free-all
<cruiser>
(assuming that you didn't set "All ships beam-freed by default" in Mission Specs)
if you have beam-free-all sexp's managing to lock your beams, you're doing something wrong
-
A light SEXP change is required, then. :)
-
I figured it out. I had another SEXP that was conflicting with it, not allowing it to work a the right time. Thanks for the help though. :)