Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.97a is out! (02/02/24); New blog post: Simulator Enhancements (03/13/24)

Author Topic: How can we catch that we've entered the Simulator?  (Read 1046 times)

xenoargh

  • Admiral
  • *****
  • Posts: 5078
  • naively breaking things!
    • View Profile
How can we catch that we've entered the Simulator?
« on: April 25, 2014, 03:38:39 PM »

Just encountered a major gotcha bug with my new Battle Plugin; it apparently runs when we're in the Simulator mode.  Is there any way to catch that?
Logged
Please check out my SS projects :)
Xeno's Mod Pack

xenoargh

  • Admiral
  • *****
  • Posts: 5078
  • naively breaking things!
    • View Profile
Re: How can we catch that we've entered the Simulator?
« Reply #1 on: April 25, 2014, 06:36:58 PM »

Got it; we just need to check CombatEngineAPI isInCampaign().
Logged
Please check out my SS projects :)
Xeno's Mod Pack