Hard Light Productions Forums
Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Cuttenslise on December 09, 2002, 10:24:06 am
-
I have just spent four hours this weekend attempting to debug a mission, and the reason for it not working was because destroyed-or-disabled-delay was not working the way I though it would. :mad: I thought that it would work like this:
Or
- Is-Destroyed-Delay
Ship X
0
- Has-Departed-Delay
Ship X
0
which is what you would expect from the description. However, in all cases that I tested, the above Or sexp returned a value of true when it should have done, when destroyed-or-disabled-delay did the sqare root of naff all (Replace with suitable swearword). Have I found a bug?
Incidentally, I am posting this here as I know that I will get intelligent answers.
-
Welcome to HLPBB
(img)http://www.insert-beam-url-here.com(/img)
-
the image doesn't work HotsnoJ
are you a beta tester? are you on the teser list?
-
Originally posted by HotSnoJ
Welcome to HLPBB
(img)http://www.insert-beam-url-here.com(/img)
Fixed. Note this is a joke. Maybe I should make my own "Beam".
-
Originally posted by Cuttenslise
Or
- Is-Destroyed-Delay
Ship X
0
- Has-Departed-Delay
Ship X
0
im confused, clarification is a virtue :).
In that sexp, do you mean disabled or departed, since you refer to disabled in topic. If you use departed instead of disabled, then there is your bug.
second: if Departed is not a mistake, well then you dont need to use OR since there is a destroyed-or-departed-delay, that is if the it is regarding the same ship.
in all cases that I tested, the above Or sexp returned a value of true when it should have done, when destroyed-or-disabled-delay did the sqare root of naff all [/B]
What on earth are you talking about :).
take your time when asking, please make sure that you know that other people will understand what your problem is. I have tried understanding exactly what your problem is, but i can“t make sense of it.
-
Ya! Finally found it.
(http://members.cox.net/~wmcoolmon/images/welcome.gif)
Welcome to HLP. Please take note of the exits to the rear, left and front, but I wouldn't take that one, as that's where Carl is. But don't be put off by the five legs, mean temper and plasma beam - he's really an OK guy...kinda. Under your seat you will find flamethrowers, the now defunct Shotguns, and under a few my very illegal ML-9000 laser. Please take note that while this weapon [ML-9000] is very good at killing shivans (sorry Carl) it does have a nasty kickback to it.
-
Destroyed-or-disabled-delay is not a sexp, Destroyed-or-departed-delay is and works
-
Originally posted by DTP
If you use departed instead of disabled, then there is your bug.
Oops, clanger. Destroyed-or-departed-delay is what I should have written. To err is human...
One of those days...
Anyway, Destroyed-or-departed-delay does not work in the same way as the Or statement I described earlier, or at least it didn't in my mission. I had to use the previously described Or statement to do what I needed.
PhReAk says that it works, but it didn't for me.
-
You are right DTP, this is far too confusing. I shall ask the moderator to close this thread, and open a new one with the correct information.
-
Probably could have just changed the topic in the first place....but alas....I shall close it.