Содержание#
Типы и методы. Параметры и результаты относятся к указанному слою X4; неизвестные типы помечены явно.
Бой и боезапас#
| Вызов / событие | Возвращает |
|---|---|
| add_ammo | none (MD action) |
| end_boarding_operation | none (MD action) |
| fire_turret | none (MD action) |
| launch_countermeasures | none (MD action) |
| launch_drone | none (MD action) |
| launch_lasertower | none (MD action) |
| launch_mine | none (MD action) |
| remove_ammo | none (MD action) |
| set_ammo | none (MD action) |
| set_turret_targets | none (MD action) |
| weapon | none (MD action) |
Верфи и строительство#
| Вызов / событие | Возвращает |
|---|---|
| abort_build | none (MD action) |
| add_build_to_construct_ship | none (MD action) |
| add_build_to_expand_station | none (MD action) |
| add_build_to_modify_ship | none (MD action) |
| apply_loadout | none (MD action) |
| can_safely_extend_build_plot | none (MD action) |
| create_build_storage | none (MD action) |
| create_loadout | none (MD action) |
| downgrade_software | none (MD action) |
| extend_build_plot | none (MD action) |
| get_loadout | none (MD action) |
| install_software | none (MD action) |
| loadout | none (MD action) |
| remove_build | none (MD action) |
| reserve_build_plot | none (MD action) |
| set_build_plot | none (MD action) |
| uninstall_software | none (MD action) |
Другие функции X4#
Загрузка и сохранение#
| Вызов / событие | Возвращает |
|---|---|
| unpause_spacesuit_oxygen | none (MD action) |
Карта и отображение#
| Вызов / событие | Возвращает |
|---|---|
| play_cutscene | none (MD action) |
| stop_cutscene | none (MD action) |
Логика, переменные и cues#
| Вызов / событие | Возвращает |
|---|---|
| append_list_elements | none (MD action) |
| append_to_list | none (MD action) |
| break | none (MD action) |
| cancel_cue | none (MD action) |
| check_any | none (MD action) |
| check_value | none (MD action) |
| continue | none (MD action) |
| delay | none (MD action) |
| do_all | none (MD action) |
| do_else | none (MD action) |
| do_elseif | none (MD action) |
| do_for_each | none (MD action) |
| do_if | none (MD action) |
| do_while | none (MD action) |
| remove_from_list | none (MD action) |
| remove_value | none (MD action) |
| reset_cue | none (MD action) |
| return | none (MD action) |
| run_actions | none (MD action) |
| set_value | none (MD action) |
| signal_cue | none (MD action) |
| signal_cue_instantly | none (MD action) |
| wait | none (MD action) |
Мир и положение#
| Вызов / событие | Возвращает |
|---|---|
| create_position | none (MD action) |
| find_asteroid_with_yield_in_sector | none (MD action) |
| find_closest_resource | none (MD action) |
| find_cluster | none (MD action) |
| find_resource_area | none (MD action) |
| find_sector | none (MD action) |
| find_sector_in_range | none (MD action) |
| get_floor_position | none (MD action) |
| get_zone_at_position | none (MD action) |
| launch_resourceprobe | none (MD action) |
| leave_control_position | none (MD action) |
| match_distance | none (MD action) |
| position | none (MD action) |
| refposition | none (MD action) |
| rotation | none (MD action) |
Правила и поведение AI#
| Вызов / событие | Возвращает |
|---|---|
| create_signal_leak | none (MD action) |
| disable_collision_response | none (MD action) |
| enable_collision_response | none (MD action) |
| release_detached_subordinate_group | none (MD action) |
| set_subordinate_group_assignment | none (MD action) |
| signal_objects | none (MD action) |
Приказы и управление#
| Вызов / событие | Возвращает |
|---|---|
| cancel_all_orders | none (MD action) |
| cancel_order | none (MD action) |
| create_formation | none (MD action) |
| create_order | none (MD action) |
| edit_order_param | none (MD action) |
| find_dockingbay | none (MD action) |
| find_player_transporter_slot | none (MD action) |
| leave_formation | none (MD action) |
| match_dock | none (MD action) |
| move_order | none (MD action) |
| remove_docking_request | none (MD action) |
| remove_object_commander | none (MD action) |
| remove_undocking_request | none (MD action) |
| request_docking | none (MD action) |
| set_object_commander | none (MD action) |
| spawn_docked | none (MD action) |
| undock | none (MD action) |
События и интерфейс#
| Вызов / событие | Возвращает |
|---|---|
| debug_text | none (MD action) |
| lock_all_flight_input | none (MD action) |
| lock_all_shooting_input | none (MD action) |
| play_sound | none (MD action) |
| raise_lua_event | none (MD action) |
| unlock_all_flight_input | none (MD action) |
| unlock_all_shooting_input | none (MD action) |
Торговля, груз и счета#
| Вызов / событие | Возвращает |
|---|---|
| add_cargo | none (MD action) |
| add_inventory | none (MD action) |
| add_money | none (MD action) |
| create_trade_computer | none (MD action) |
| create_trade_offer | none (MD action) |
| create_trade_order | none (MD action) |
| drop_cargo | none (MD action) |
| find_inventoryconsole_slot | none (MD action) |
| find_inventoryworkbench_slot | none (MD action) |
| price | none (MD action) |
| remove_cargo | none (MD action) |
| remove_inventory | none (MD action) |
| remove_money | none (MD action) |
| remove_trade_offer | none (MD action) |
| set_object_max_budget | none (MD action) |
| set_object_min_budget | none (MD action) |
| transfer_money | none (MD action) |
Фракции и дипломатия#
| Вызов / событие | Возвращает |
|---|---|
| add_licence | none (MD action) |
| match_relation_to | none (MD action) |
| remove_licence | none (MD action) |
| set_faction_identity | none (MD action) |
| set_faction_relation | none (MD action) |
| set_faction_relation_locked | none (MD action) |
| set_object_fleet_name | none (MD action) |
NPC и персонажи#
| Вызов / событие | Возвращает |
|---|---|
| add_actor_to_room | none (MD action) |
| assign_control_entity | none (MD action) |
| assign_hired_actor | none (MD action) |
| clear_actor_lookat | none (MD action) |
| clear_actor_roomslot | none (MD action) |
| create_control_entity | none (MD action) |
| create_cue_actor | none (MD action) |
| create_npc_template | none (MD action) |
| dismiss_control_entity | none (MD action) |
| find_npc_slot | none (MD action) |
| lock_all_firstperson_input | none (MD action) |
| reassign_existing_people | none (MD action) |
| remove_cue_actor | none (MD action) |
| remove_npc_template | none (MD action) |
| set_actor_lookat | none (MD action) |
| set_entity_overrides | none (MD action) |
| set_entity_role | none (MD action) |
| set_entity_traits | none (MD action) |
| set_entity_type | none (MD action) |
| set_npc_template_role | none (MD action) |
| set_player_entity_position | none (MD action) |
| start_actor_sequence | none (MD action) |
| unlock_all_firstperson_input | none (MD action) |