Author Topic: The new Lua SEXP interface  (Read 1105 times)

0 Members and 1 Guest are viewing this topic.

Offline Bryan See

  • Has anyone really been far as decided to use even go want to do look more like?
  • 29
  • Visionary modder and coder
    • Skype
    • Steam
    • Twitter
Re: The new Lua SEXP interface
Excuse me, guys.

What about the ability to override existing SEXPs?

For example, I want to augment the cutscene SEXPs so that camera movements will be reminiscent to recent movies and games - thus improving cinematic experience of in-mission cutscenes.
Bryan See - My FreeSpace Wiki User Page (Talk, Contributions)

Campaigns:
FreeSpace: Reunited - Shattered Stars

Ships:
GTS Hygeia, GTT Argo, SC Raguel

 

Online m!m

  • 210
Re: The new Lua SEXP interface
Existing SEXPs will always override SEXPs added by this new system. You cannot replace a built-in SEXP with a Lua SEXP since that could cause a lot of problems.

 

Offline Bryan See

  • Has anyone really been far as decided to use even go want to do look more like?
  • 29
  • Visionary modder and coder
    • Skype
    • Steam
    • Twitter
Re: The new Lua SEXP interface
That means if I want to override them without actually replacing built-in SEXPs with Lua SEXPs, I just have to create them to complement them.
Bryan See - My FreeSpace Wiki User Page (Talk, Contributions)

Campaigns:
FreeSpace: Reunited - Shattered Stars

Ships:
GTS Hygeia, GTT Argo, SC Raguel

 

Online m!m

  • 210
Re: The new Lua SEXP interface
If you mean by that that you need to create a new SEXP with a different name and then use that in your missions then yes, that's how you need to do it.

 

Offline Bryan See

  • Has anyone really been far as decided to use even go want to do look more like?
  • 29
  • Visionary modder and coder
    • Skype
    • Steam
    • Twitter
Re: The new Lua SEXP interface
I got it.

Can these SEXPS may include built-in SEXPs as well as some Lua code?
Bryan See - My FreeSpace Wiki User Page (Talk, Contributions)

Campaigns:
FreeSpace: Reunited - Shattered Stars

Ships:
GTS Hygeia, GTT Argo, SC Raguel

 
Re: The new Lua SEXP interface
mn.evaluateSEXP springs to mind.