Originally posted by DTP
The way V did it makes perfect sense. It is you who are asking the wrong Question.
The right Question is.
Is the ship tagged at this very moment with an active TAG missile?
and not
Has the ship been tagged at all?.
you should use a Variable that is set to 1 in FRED2, once the ship has been tagged,instead of rewriting the SEXP, maybe corrupting backward compatibility with the missions written in the past.:wink:
You're thinking of the wrong SEXP. has-been-tagged-delay is the one that does "has the ship been tagged at all" the one I fixed (which
did not work) is is_tagged. The way is_tagged should have worked is to return true
while the ship is tagged.
But the

code doesn't work. They probably changed the ship or tag code and broke is_tagged but didn't notice because they didn't use it. They didn't use has-been-tagged-delay either. They did use turret-tagged-only. (In SM02-02.fs2, grep is handy at times like these.)
I didn't touch has-been-tagged-delay since it works, though it doesn't do what some might want it to. Once it's true it stays true.
On the other hand, is_tagged goes back to being false when the tag wears off. I have a mission I have used it in to prove it. That mission won't work with the

exe, but with the modified exe it works fine.
And I just tested it again with both exes. (Right before I got kicked off by AOL for the second time while writing this dang post.)
Edit: Forgot the link to the Most Useless SEXP thread where I initially learned about is_tagged which I hadn't tried using before:
http://www.hard-light.net/forums/index.php/topic,6242.0.html