370 | | * Executing ConsoleCommands (= executing code): |
371 | | {{{ |
372 | | #!xml |
373 | | |
374 | | }}} |
375 | | |
| 371 | * Executing '''ConsoleCommands''' (= executing code): |
| 372 | {{{ |
| 373 | #!xml |
| 374 | <!-- End the Mission (success) --> |
| 375 | <Script code="Mission endMission true" onLoad="false"> |
| 376 | <events> |
| 377 | <trigger> |
| 378 | <EventListener event=endOfLevel /> |
| 379 | </trigger> |
| 380 | </events> |
| 381 | </Script> |
| 382 | }}} |
| 383 | The ConsoleCommand "'''Mission endMission true'''" gets executed. |
| 384 | ==== How to find out more console commands ==== |
| 385 | Open the in-game console and press [Tab] (command completion) to find out which console commands already exist. Note that if there is no shortcut, the command completion only reveals the command word by word - you have to specify the class and press tab again to see which commmands are created in a specific class and repeat this process again to see which argument is needed for a specific ConsoleCommand. |