Author Topic: Question  (Read 1299 times)

0 Members and 1 Guest are viewing this topic.

Offline Falcon

  • 29
Would there be any possibility in adding a sexp that can activate or deactivate events. This would be nice since I could do loopin of events. Basically  when an event plays it only does it once and just specifying intervals will not help. I want it so when I press a specific key it plays out once and deactivates itself but activates another event when going to the second event the event will play out deactivate itself and go back to the first. Thats what I want.

 

Offline HotSnoJ

  • Knossos Online!
  • 29
    • http://josherickson.org
IIRC the sexp is in a loop. Therefore, what do you think if-{insert name here}'s are for?
I have big plans, now if only I could see them through.

LiberCapacitas duo quiasemper
------------------------------
Nav buoy - They mark things

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Quote
Originally posted by Falcon
Would there be any possibility in adding a sexp that can activate or deactivate events. This would be nice since I could do loopin of events. Basically  when an event plays it only does it once and just specifying intervals will not help. I want it so when I press a specific key it plays out once and deactivates itself but activates another event when going to the second event the event will play out deactivate itself and go back to the first. Thats what I want.


Try the every-time SEXP instead of when.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
I'm not much of a FREDder, but couldn't you do this with variables?
-C

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Ironically not only can you do it with variables but I FREDded a mission for Black Wolf a little while back showing exactly how to do it :D

http://www.hard-light.net/forums/index.php/topic,24148.0.html

That said using the every-time SEXP is also another way of doing it. Depends on what was going on in your mission :)
Karajorma's Freespace FAQ. It's almost like asking me yourself.

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

  

Offline Falcon

  • 29
Baiscally switching the AI on and off......