-
Notifications
You must be signed in to change notification settings - Fork 7
Mission editor
The mission editor shares a lot of shortcuts with Unreal Engine Editor, so you might try those. Anyway here are some that I find useful:
Key | Description |
---|---|
F2 | allows to rename selected actor. It's a bit clunkyand you might need to click on the entry in the actor list on the right-hand side of the editor. |
End | places the selected actor, or actors, on the ground. If multiple actors are selected it might bury/levitate some actors. |
F | moves the editor camera to the selected actor. |
To create a mission simply:
- Start Ground Branch.
- Open the console using the tilda key
~
. - Write
open <mapname>
, where<mapname>
is the name of the map e.g.:open smalltown
, in the console and press enter. - Open the console again using the tilda key
~
. - Write
editmission
in the console and press enter. - Click on the "hamburger" icon menu in the top-left corner and select "Save as" from the drop-down.
- Input the data you want (it can be anything) and confirm,
- Click on the "script" icon menu in the top-left corner and select "Create" from the drop-down.
- Input the data you want (it can be anything) and confirm,
- Click on the "hamburger" icon menu in the top-left corner and select "Save" from the drop-down.
The following steps are not required but are handy if you'll want to restart the level
using the restartlevel
console command (otherwise restart level command will restart
the "empty" mission):
- Exit to main menu, select "Lone wolf" from the list.
- On the mission select screen select your game mode and the mission.
From here on out you can open the mission editor with the editmission
console command.
You can refresh the game mode script at any time when in the editor by using the "script" icon menu in the top-left corner and selecting "Refresh" from the drop-down.
Note: while this will refresh the game mode script, if your script depend on modules (lua scripts in separate files imported using the "require" keyword) you will need to restart the game to "see" changes made in the modules. Also to see changes made in the localisation tables you'll need to restart the game.
You can restart the current mission using the restartlevel
console command at any time.
I found that some changes in the mission file aren't properly updated when using the refresh script option. And so if something does not work after using the refresh script option I would advise restarting the level.
If that doesn't work try restarting the entire game.