Author Topic: Speed SEXP  (Read 1925 times)

0 Members and 1 Guest are viewing this topic.

Offline diamondgeezer

Yea, verily, we need a SEXP to check a ship's speed

 

Online Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
er, cap-waypoint-speed, surely?

 

Offline Solatar

  • 211
Think he means like:

ship-speed < or > a number

I thought this could be done?

 

Online Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
Oh.  Yeah, there's a training sexp for that, but only for the player.

It shouldn't matter for other ships, though, because they always fly at their max speed unless capped by cap-waypoint-speed.

 

Offline Trivial Psychic

  • 212
  • Snoop Junkie
What about if you want an event to be triggered when a certain capship has decelerated to a stop after exiting subspace.

When
-<
--ship-speed
---SD Lucifer (multiple entries possible)
--5
-do-nothing (or whatever)

I guess this should all be in the sexps listing in the FAQ sub-forum, but since I didn't start this thread, I have no problems about continuing it at this point.

Later!
The Trivial Psychic Strikes Again!

  

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Simply make a test mission and time it :D
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline diamondgeezer

Quote
Originally posted by Goober5000
Oh.  Yeah, there's a training sexp for that, but only for the player

There is? D'oh!

 

Offline diamondgeezer

Actually, that training SEXP isn't going to cut it. It lets me return a value for speed, sure, but I can't use it in conjunction with < or >. I basically want to tell the player if he's going to fast, see? So I need when > speed 50, for example. As it stands I cant' do that

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
I've had a quick look at the SEXP and the arguement it takes isn't a speed. It's a time.  The SEXP triggers once you spend an amount of time at the speed set by the Set-Training-Context-Speed SEXP

So if you use the Set-Training-Context-Speed SEXP, set the minimum speed to 51 and the maximum speed as high as it will go you should be able to make the speed SEXP trigger as soon as the player goes over 50m/s
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline diamondgeezer

Works. Another karajorma triumph :D