Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: dragonsniper on March 14, 2009, 09:33:34 am

Title: Beam lock
Post 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?
Title: Re: Beam lock
Post by: dragonsniper on March 14, 2009, 09:45:46 am
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.
Title: Re: Beam lock
Post by: Mobius on March 14, 2009, 09:46:07 am
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)
Title: Re: Beam lock
Post by: dragonsniper on March 14, 2009, 09:52:13 am
Thanks. In the first post I meant to say "locked" instead of "unlocked." Anyhow, I think I have it working now.
Title: Re: Beam lock
Post by: karajorma on March 14, 2009, 10:40:33 am
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.
Title: Re: Beam lock
Post by: dragonsniper on March 14, 2009, 10:53:23 am
I guess that's true. Thanks for the quick help.
Title: Re: Beam lock
Post by: Mobius on March 15, 2009, 04:29:08 am
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
Title: Re: Beam lock
Post by: Hippo on March 17, 2009, 12:10:35 am
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
Title: Re: Beam lock
Post by: Mobius on March 19, 2009, 12:22:25 pm
A light SEXP change is required, then. :)
Title: Re: Beam lock
Post by: dragonsniper on March 19, 2009, 02:51:27 pm
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. :)