This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
xg:activation_type [2017-03-17 07:55] – skyjake | xg:line_activation [2018-10-20 07:48] (current) – ↷ Page name changed from xg:activation_type to xg:line_activation skyjake | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Line activation (XG) ====== | ||
+ | |||
+ | In [[XG]], a [[line]] has a state, it is always either //active// or // | ||
+ | |||
+ | A [[line]] can be // | ||
+ | |||
+ | A line type can specify several [[activation requirements]] that must be met for the activation or deactivation of the line to succeed. These include. for instance the event type, a [[xg: | ||
+ | |||
+ | Many things can happen when a line is activated or deactivated. The most important one is the execution of the line's [[xg: | ||
+ | |||
+ | |||
+ | ===== Activation types ===== | ||
+ | |||
+ | The // | ||
+ | Type = flip | ||
+ | |||
+ | |||
+ | ==== timed_off ==== | ||
+ | |||
+ | Line can be activated if it's inactive. Once activated, it will remain in that state for a given period of time, after which it will automatically deactivate itself. Line can't be deactivated with events. | ||
+ | |||
+ | |||
+ | ==== timed_on ==== | ||
+ | |||
+ | Line can be deactivated if it's active. Once deactivated, | ||
+ | |||
+ | |||
+ | ==== flip ==== | ||
+ | |||
+ | Line can be activated and deactivated with events at any time. There is no automatical time-based activation or deactivation. | ||
+ | |||
+ | |||
+ | ==== flip_timed_off ==== | ||
+ | |||
+ | Line can be activated and deactivated with events at any time. Once activated, the line will deactivate itself after a given period of time. | ||
+ | |||
+ | |||
+ | ==== flip_timed_on ==== | ||
+ | |||
+ | Line can be activated and deactivated with events at any time. Once deactivated, | ||
+ | |||
+ | |||
+ | ===== Activation flags ===== | ||
+ | |||
+ | Activation flags modify the behavior of the line to act in various ways. They are specified use the " | ||
+ | |||
+ | < | ||
+ | </ | ||
+ | Example: | ||
+ | | ||
+ | Flags2 = 2sided | group_act | ||
+ | |||
+ | |||
+ | ==== active ==== | ||
+ | |||
+ | The line is initially active. If this flag is not set, the line is inactive after the map has been loaded. | ||
+ | |||
+ | |||
+ | ==== multiple ==== | ||
+ | |||
+ | When the line is activated or deactivated, | ||
+ | |||
+ | |||
+ | ==== 2sided ==== | ||
+ | |||
+ | The line can be activated and deactivated from both sides. If this flag is not used, only the events that deal with the front side of the line are processed. | ||
+ | |||
+ | |||
+ | ==== group_act ==== | ||
+ | |||
+ | When the line is activated also activate any other lines with a matching Tag. | ||
+ | |||
+ | |||
+ | ==== group_deact ==== | ||
+ | |||
+ | When the line is deactivated also deactivate any other lines with a matching Tag. | ||
+ | |||
+ | ==== override_any ==== | ||
+ | |||
+ | If the line has the [[boom]] flag 'Any Trigger', | ||
+ | |||
+ | |||
+ | ===== See also ===== | ||
+ | |||
+ | * [[xg: | ||
+ | |||
+ | |||