Author Topic: is-targetted/distance-ship-subsystem sexp  (Read 1561 times)

0 Members and 1 Guest are viewing this topic.

Offline Black Wolf

  • Twisted Infinities
  • 212
  • Hey! You! Get off-a my cloud!
    • Visit the TI homepage!
is-targetted/distance-ship-subsystem sexp
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.
TWISTED INFINITIES · SECTORGAME· FRONTLINES
Rarely Updated P3D.
Burn the heretic who killed F2S! Burn him, burn him!!- GalEmp

 

Offline Trivial Psychic

  • 212
  • Snoop Junkie
is-targetted/distance-ship-subsystem sexp
distance-ship-subsystem already exists.
The Trivial Psychic Strikes Again!

 

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
is-targetted/distance-ship-subsystem sexp
Is-targeted also exists as a training sexp.  Not currently for ships other than Alpha 1 though.

 

Offline Black Wolf

  • Twisted Infinities
  • 212
  • Hey! You! Get off-a my cloud!
    • Visit the TI homepage!
is-targetted/distance-ship-subsystem sexp
Yeah, I figured both of those out at work. I'm a twit. I'll test the method out and see if it works.
TWISTED INFINITIES · SECTORGAME· FRONTLINES
Rarely Updated P3D.
Burn the heretic who killed F2S! Burn him, burn him!!- GalEmp

  

Offline Prophet

  • 210
  • The know-it-all
is-targetted/distance-ship-subsystem sexp
Quote
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:
I'm not saying anything. I did not say anything then and I'm not saying anything now. -Dukath
I am not breaking radio silence just cos' you lot got spooked by a dead flying ****ing cow. -Sergeant Harry Wells/Dog Soldiers


Prophet is walking in the deep dark places of the earth...

 

Offline IPAndrews

  • Disgruntled Customer
  • 212
  • This site stole my work
is-targetted/distance-ship-subsystem sexp
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.
Be warned: This site's admins stole 100s of hours of my work. They will do it to you.

 

Offline Trivial Psychic

  • 212
  • Snoop Junkie
is-targetted/distance-ship-subsystem sexp
Quote
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?
The Trivial Psychic Strikes Again!

 

Offline Prophet

  • 210
  • The know-it-all
is-targetted/distance-ship-subsystem sexp
Quote
Originally posted by Trivial Psychic
Which ship were you encountering this with?

The Omega...
I'm not saying anything. I did not say anything then and I'm not saying anything now. -Dukath
I am not breaking radio silence just cos' you lot got spooked by a dead flying ****ing cow. -Sergeant Harry Wells/Dog Soldiers


Prophet is walking in the deep dark places of the earth...

 

Offline Black Wolf

  • Twisted Infinities
  • 212
  • Hey! You! Get off-a my cloud!
    • Visit the TI homepage!
is-targetted/distance-ship-subsystem sexp
Quote
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.
TWISTED INFINITIES · SECTORGAME· FRONTLINES
Rarely Updated P3D.
Burn the heretic who killed F2S! Burn him, burn him!!- GalEmp

 

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
is-targetted/distance-ship-subsystem sexp
Quote
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.