alertConditionChanged

For test results, bug reports, announcements of new builds etc.

Moderators: winston, another_commander, Getafix

Post Reply
User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

alertConditionChanged

Post by Commander McLane »

Contrary to what the Wiki says, the alertConditionChanged handler is not triggered in ship scripts.

I have worked around that by calling the routine in the ship script from my world script, and it works. But either the handler should fire in both, or the parenthesis in the Wiki should be deleted.
User avatar
Kaks
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 3009
Joined: Mon Jan 21, 2008 11:41 pm
Location: The Big Smoke

Post by Kaks »

Hmmm, interesting.

I had a look at the code and it looks like stations scripts will react to alertConditionChanged, but that event will reflect the station's alert level, not the player's.

All other entities do not react to alertConditionChanged.

We definitely need to change the wiki entry!
Hey, free OXPs: farsun v1.05 & tty v0.5! :0)
Post Reply