Difference between revisions of "Sandbox"
Jump to navigation
Jump to search
m (Try with specified language) |
|||
Line 4: | Line 4: | ||
echo "Done!"; | echo "Done!"; | ||
?> | ?> | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | <syntaxhighlight> | ||
+ | local function foo() | ||
+ | print("Hello World") | ||
+ | end | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Revision as of 19:21, 26 October 2021
Header
<?php echo "Done!"; ?>
local function foo() print("Hello World") end
Subheader
Sometimes you might want to test things out to see how units and interactions work in-game. Here's how to do this easily:
1. Go to make a single player skirmish game. Press advanced and make yourself spectate the game. Put one inactive AI on both teams. Choose a map you want. The setup should look something like this:
Go ahead and start the game
2. Once you are in-game enable cheats by typing /cheat in chat. Open the handy cheat sheet with the button under the minimap. Check "Global spec control" to get full control of both AIs. There are also a few other useful self-explanatory actions on the cheat sheet.
3. Now you can go ahead and test things out as you wish.