set Flag With Reason
inline fun <Error class: unknown class>.setFlagWithReason(flagKey: String, reason: String, value: Boolean, expire: Float): <Error class: unknown class>
A flag can be set to true for several "reasons". As long as it hasn't been set back to false for all of the "reasons", it will remain set to true.
For example, a fleet may be hostile because it's responding to comm relay interference, and because the player is running with the transponder off. Until both are resolved, the "hostile" flag will remain set to true.
Note: a flag can not be "set" to false. If it's set to false for all the current reasons, the key is removed from memory.
Returns whether the flag is still set after this method does its work.
Since
0.46.0