This shows you the differences between two versions of the page.
| xg:class:command [2017-03-17 10:12] – skyjake | xg:class:command [2019-11-26 09:03] (current) – [Parameters] skyjake | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Command (XG class) ====== | ||
| + | |||
| + | |||
| + | < | ||
| + | </ | ||
| + | Executes a console command. | ||
| + | |||
| + | |||
| + | ===== Parameters ===== | ||
| + | |||
| + | |||
| + | ^ Prm^ Name^ Type^ Meaning | | ||
| + | | Sp0| | String| The console command to be executed. Note that semicolons can be used to separate any number of commands, so this is perfectly legal: < | ||
| + | |||
| + | |||
| + | |||
| + | ===== Example ===== | ||
| + | |||
| + | | ||
| + | Line Type { | ||
| + | ID = 5031 | ||
| + | Comment = "Turn fog on when player crosses" | ||
| + | Flags = player_cross | ||
| + | Flags2 = when_act | any | ||
| + | Class = command | ||
| + | Count = 1 | ||
| + | sp0 = "fog on" | ||
| + | } | ||
| + | |||
| + | When this line is crossed, the console command "fog on" will enable fog until it is disabled. | ||
| + | |||
| + | |||