User Tools

Site Tools


xg:class:command

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

xg:class:command [2017-03-17 10:12] skyjakexg:class:command [2019-11-26 09:03] (current) – [Parameters] skyjake
Line 1: Line 1:
 +====== Command (XG class) ======
 +
 +
 +<code>Class = command
 +</code>
 +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: <code>fog on; fog end 500</code> |
 +
 +
 +
 +===== 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.
 +
 +