Mission editor help

undefined-darkness edited this page Jul 17, 2016 · 19 revisions

Change mode: ctrl+(1-6)

Selection widget

Focus on object: double click

Selecting multiple objects: ctrl/shift

Clear selection: ctrl+d

Select all: ctrl+a

Central widget

Move camera: mouseRight

Rotate camera: mouseRight + shift

Change camera height: mouseRight + alt

Modes widget

Add

Add object: mouseLeft

Rotate: shift+mouseY

Change height: alt+mouseY

Edit

Move objects: mouseLeft

Rotate objects: shift+mouseY

Change objects height: alt+mouseY

Remove objects: del

Path

New path: mouseLeft without selection

Add path point: mouseLeft with path selected

Remove last point: del

Change height: alt+mouseY

Zone

Add zone: mouseLeft

Adjust radius: alt+mouseY

Script

Lua reference manual

Included modules: string, math

Functions:

start_timer(id, time, function)
setup_timer(id, name)
stop_timer(id)

set_active(id, bool)
set_path(id, path_id)
set_follow(id, target_id)
set_target(id, target_id)
set_target_search(id, mode) --all, player, none
set_align(id, align) --target, enemy, ally, neutral
set_speed(id, speed)
set_speed_limit(id, max_speed)

get_height(id)

destroy(id)

setup_radio(id, name, color)
clear_radio()
add_radio(id, message, time)

set_hud_visible(bool)

mission_clear()
mission_update()
mission_fail()

Info

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.