Hard Light Productions Forums
Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Black Wolf on October 20, 2005, 07:56:09 am
-
Could it be done? For details as to what for, see my post on this thread:
http://www.hard-light.net/forums/index.php/topic,35851.0.html
It's the best way to individually control capship turrets I can come up with, (especially, now that I think about it, the get-relative-player-x/y/z stuff shouldn't be neccesary if distance-ship-subsystem can be implemented, which I suspect for what are the most vague and nebulous of reason, might be a tad easier) short of completely recoding parts of the engine to make it more amenable to flying caps, which I suspect might be ever so slightly overkill.
-
distance-ship-subsystem already exists.
-
Is-targeted also exists as a training sexp. Not currently for ships other than Alpha 1 though.
-
Yeah, I figured both of those out at work. I'm a twit. I'll test the method out and see if it works.
-
Originally posted by Trivial Psychic
distance-ship-subsystem already exists.
I tried this btw when doing missions for TPB some time ago... It didn't work. I tried to end the mission when player was at certain distance away from a docking bay. But instead of ending the mission my ship flew right trought the docking bay and the ship it was in.
I just figured **** it and changed the sexp to look at the distance from the ship itself, that worked ofcourse. And naturally I don't remember what build it was. And I have not tried it with a newer build. - And that makes this a fairly meaningless post :rolleyes:
-
Is-targetted will also be true if the player targetted the mentioned ship any time at all during the mission! Really it should be called has-targetted.
-
Originally posted by Prophet
I tried this btw when doing missions for TPB some time ago... It didn't work. I tried to end the mission when player was at certain distance away from a docking bay. But instead of ending the mission my ship flew right trought the docking bay and the ship it was in.
I just figured **** it and changed the sexp to look at the distance from the ship itself, that worked ofcourse. And naturally I don't remember what build it was. And I have not tried it with a newer build. - And that makes this a fairly meaningless post :rolleyes:
I get this from time to time myself. I thought perhaps that it was related to problems with the model. Which ship were you encountering this with?
-
Originally posted by Trivial Psychic
Which ship were you encountering this with?
The Omega...
-
Originally posted by IPAndrews
Is-targetted will also be true if the player targetted the mentioned ship any time at all during the mission! Really it should be called has-targetted.
Really? ****e.
-
Originally posted by IPAndrews
Is-targetted will also be true if the player targetted the mentioned ship any time at all during the mission! Really it should be called has-targetted.
That's not true; I just checked the source code.