luafunctionref
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| luafunctionref [2025/01/08 17:49] – bredroll | luafunctionref [2026/03/03 18:17] (current) – [Loading] bredroll | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== CC2 Lua Functions | + | ====== CC2 Lua ====== |
| This is a (not exhaustive) reference for functions available to be called in the lua scripts used for screen rendering/ | This is a (not exhaustive) reference for functions available to be called in the lua scripts used for screen rendering/ | ||
| + | |||
| + | CC2 has various lua scripts that directly drive what information you see on screens, in the control seat and ship cameras. They are the way players choose to refit units, set waypoints, see and identify threats. | ||
| + | |||
| + | * screen | ||
| + | * draw the user interface for each bridge station | ||
| + | * hud | ||
| + | * draw the heads-up-display when in direct control of a unit | ||
| + | * library | ||
| + | * shared code usable in screens or hud scripting. | ||
| + | |||
| + | ===== Script Environment ===== | ||
| + | |||
| + | ==== Loading ==== | ||
| + | |||
| + | Each screen on the carrier gets its own Lua interpreter instance. Setting globals at runtime in the script will not have any effect on other screens running the same script. The same is true of the HUD except there is only ever one instance if vehicle_hud.lua running on your PC. | ||
| + | |||
| + | Scripts have the following load order: | ||
| + | |||
| + | * library_enum.lua | ||
| + | * library_util.lua | ||
| + | * library_vehicle.lua | ||
| + | * library_ui.lua | ||
| + | * library_custom_X.lua | ||
| + | * screen/hud | ||
| + | |||
| + | |||
| + | ==== Execution ==== | ||
| + | |||
| + | The whole of each file is evaluated in the same lua interpreter. If you set a global outside of a function in library_enum.lua then you will be able to see the value in library_util.lua and later. | ||
| + | |||
| + | === begin === | ||
| + | |||
| + | Once this is complete, the game will call the '' | ||
| + | |||
| + | === game === | ||
| + | |||
| + | Now that the script is loaded and begin has been called, the input and update functions will be called. These are called once per " | ||
| + | |||
| + | When a player is using the HUD, the update rate of other scripts is reduced to once every 30 ticks (1 time per second), and the input functions are not called. The HUD update function is only called when a player is in the HUD view. | ||
| + | |||
| + | ==== input ==== | ||
| + | |||
| + | During the input cycle, the core game makes calls to the '' | ||
| + | |||
| + | ==== update ==== | ||
| + | |||
| + | Next is the update cycle, most of the heavy lifting goes on in here, these are where you can introspect the current vehicle, carrier details, weapons, map, nearby units, other players, missiles, etc. graphical/ | ||
| + | |||
| + | === Refresh Rate === | ||
| + | |||
| + | I have recently discovered there is another factor that influences how often a script '' | ||
| + | |||
| + | |||
| + | ==== Functions ====== | ||
| ---- | ---- | ||
| - | '' | + | ===begin_get_screen_name=== |
| Native/C function | Native/C function | ||
| + | |||
| + | Can be called only during the '' | ||
| + | |||
| + | Returns the name value of the currently executing screen. This is the value set in ''< | ||
| + | |||
| + | < | ||
| + | <screen name=" | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | help_tag=" | ||
| + | </ | ||
| + | |||
| + | If called within a '' | ||
| Usable in: | Usable in: | ||
| - | * screen_inventory.lua | + | * screen_*.lua |
| - | * screen_navigation.lua | + | |
| Example call: | Example call: | ||
| Line 18: | Line 89: | ||
| ---- | ---- | ||
| - | '' | + | ===begin_get_ui_region_index=== |
| Native/C function | Native/C function | ||
| + | |||
| + | Can be called only during the '' | ||
| + | |||
| + | Return the index number for a specific UI icon image. | ||
| Usable in: | Usable in: | ||
| Line 40: | Line 115: | ||
| ---- | ---- | ||
| - | '' | + | ===begin_load=== |
| Lua defined function in library_util.lua | Lua defined function in library_util.lua | ||
| Line 86: | Line 161: | ||
| ---- | ---- | ||
| - | '' | + | ===begin_load_inventory_data=== |
| Lua defined function in library_vehicle.lua | Lua defined function in library_vehicle.lua | ||
| + | |||
| + | Called early in '' | ||
| Usable in: | Usable in: | ||
| Line 104: | Line 181: | ||
| ---- | ---- | ||
| - | '' | + | ===update_add_ui_interaction=== |
| Lua defined function in interactions.lua | Lua defined function in interactions.lua | ||
| + | |||
| + | Call to display the on-screen control hints in the bottom left of the screen. | ||
| Usable in: | Usable in: | ||
| Line 132: | Line 211: | ||
| ---- | ---- | ||
| - | '' | + | ===update_add_ui_interaction_special=== |
| Lua defined function in interactions.lua | Lua defined function in interactions.lua | ||
| Line 164: | Line 243: | ||
| ---- | ---- | ||
| - | '' | + | ===update_animations=== |
| Lua defined function in vehicle_hud.lua | Lua defined function in vehicle_hud.lua | ||
| Line 177: | Line 256: | ||
| ---- | ---- | ||
| - | '' | + | ===update_boot_override=== |
| Lua defined function in library_util.lua | Lua defined function in library_util.lua | ||
| Line 190: | Line 269: | ||
| ---- | ---- | ||
| - | '' | + | ===update_camera_local_rotate_inv=== |
| Native/C function | Native/C function | ||
| Line 203: | Line 282: | ||
| ---- | ---- | ||
| - | '' | + | ===update_chat=== |
| Lua defined function in interactions.lua | Lua defined function in interactions.lua | ||
| Line 216: | Line 295: | ||
| ---- | ---- | ||
| - | '' | + | ===update_create_workshop_mod=== |
| Native/C function | Native/C function | ||
| Line 229: | Line 308: | ||
| ---- | ---- | ||
| - | '' | + | ===update_cursor_state=== |
| Lua defined function in screen_vehicle_control.lua | Lua defined function in screen_vehicle_control.lua | ||
| Line 242: | Line 321: | ||
| ---- | ---- | ||
| - | '' | + | ===update_damage_zones=== |
| Lua defined function in screen_damage.lua | Lua defined function in screen_damage.lua | ||
| Line 255: | Line 334: | ||
| ---- | ---- | ||
| - | '' | + | ===update_exit_pause_menu=== |
| Native/C function | Native/C function | ||
| Line 268: | Line 347: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_active_input_type=== |
| Native/C function | Native/C function | ||
| Line 296: | Line 375: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_angle_2d=== |
| Native/C function | Native/C function | ||
| Line 309: | Line 388: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_application_state=== |
| Native/C function | Native/C function | ||
| Line 322: | Line 401: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_attachment_ammo_item_type=== |
| Native/C function | Native/C function | ||
| Line 335: | Line 414: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_attachment_option=== |
| Native/C function | Native/C function | ||
| Line 348: | Line 427: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_attachment_option_count=== |
| Native/C function | Native/C function | ||
| Line 361: | Line 440: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_attachment_option_hidden=== |
| Native/C function | Native/C function | ||
| Line 374: | Line 453: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_camera_forward=== |
| Native/C function | Native/C function | ||
| Line 387: | Line 466: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_camera_fov=== |
| Native/C function | Native/C function | ||
| Line 400: | Line 479: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_camera_heading=== |
| Native/C function | Native/C function | ||
| Line 413: | Line 492: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_camera_position=== |
| Native/C function | Native/C function | ||
| Line 426: | Line 505: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_camera_side=== |
| Native/C function | Native/C function | ||
| Line 439: | Line 518: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_chat_messages=== |
| Native/C function | Native/C function | ||
| Line 452: | Line 531: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_connect_address=== |
| Native/C function | Native/C function | ||
| Line 465: | Line 544: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_currency_log=== |
| Native/C function | Native/C function | ||
| Line 478: | Line 557: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_currency_log_count=== |
| Native/C function | Native/C function | ||
| Line 491: | Line 570: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_definition_vehicle_stats=== |
| Native/C function | Native/C function | ||
| Line 505: | Line 584: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_delivery_log=== |
| Native/C function | Native/C function | ||
| Line 518: | Line 597: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_delivery_log_count=== |
| Native/C function | Native/C function | ||
| Line 531: | Line 610: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_friend_games=== |
| Native/C function | Native/C function | ||
| Line 544: | Line 623: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_game_input_category=== |
| Native/C function | Native/C function | ||
| Line 557: | Line 636: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_game_input_count=== |
| Native/C function | Native/C function | ||
| Line 570: | Line 649: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_game_input_name=== |
| Native/C function | Native/C function | ||
| Line 583: | Line 662: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_game_settings=== |
| Native/C function | Native/C function | ||
| Line 599: | Line 678: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_gfx_resolution_modes=== |
| Native/C function | Native/C function | ||
| Line 612: | Line 691: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_hair_color_options=== |
| Native/C function | Native/C function | ||
| Line 625: | Line 704: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_host_connect_token=== |
| Native/C function | Native/C function | ||
| Line 638: | Line 717: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_host_max_players=== |
| Native/C function | Native/C function | ||
| Line 651: | Line 730: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_host_password=== |
| Native/C function | Native/C function | ||
| Line 664: | Line 743: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_input_binding_gamepad_axis=== |
| Native/C function | Native/C function | ||
| Line 678: | Line 757: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_input_binding_gamepad_button=== |
| Native/C function | Native/C function | ||
| Line 692: | Line 771: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_input_binding_is_axis_inverted=== |
| Native/C function | Native/C function | ||
| Line 705: | Line 784: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_input_binding_joystick_axis=== |
| Native/C function | Native/C function | ||
| Line 719: | Line 798: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_input_binding_joystick_button=== |
| Native/C function | Native/C function | ||
| Line 733: | Line 812: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_input_binding_joystick_connected=== |
| Native/C function | Native/C function | ||
| Line 746: | Line 825: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_input_binding_joystick_guid=== |
| Native/C function | Native/C function | ||
| Line 759: | Line 838: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_input_binding_joystick_name=== |
| Native/C function | Native/C function | ||
| Line 772: | Line 851: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_input_binding_keyboard_key=== |
| Native/C function | Native/C function | ||
| Line 786: | Line 865: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_input_binding_keyboard_pointer=== |
| Native/C function | Native/C function | ||
| Line 800: | Line 879: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_input_category_name=== |
| Native/C function | Native/C function | ||
| Line 813: | Line 892: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_input_gamepad_axis_value=== |
| Native/C function | Native/C function | ||
| Line 826: | Line 905: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_input_joystick_axis_count=== |
| Native/C function | Native/C function | ||
| Line 839: | Line 918: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_input_joystick_axis_value=== |
| Native/C function | Native/C function | ||
| Line 852: | Line 931: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_input_joystick_connected=== |
| Native/C function | Native/C function | ||
| Line 865: | Line 944: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_input_joystick_guid=== |
| Native/C function | Native/C function | ||
| Line 878: | Line 957: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_input_joystick_name=== |
| Native/C function | Native/C function | ||
| Line 891: | Line 970: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_is_chat_box_available=== |
| Native/C function | Native/C function | ||
| Line 904: | Line 983: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_is_focus_local=== |
| Native/C function | Native/C function | ||
| Line 929: | Line 1008: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_is_hosting_game=== |
| Native/C function | Native/C function | ||
| Line 942: | Line 1021: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_is_input_rebindable_gamepad=== |
| Native/C function | Native/C function | ||
| Line 955: | Line 1034: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_is_input_rebindable_gamepad_as_axis=== |
| Native/C function | Native/C function | ||
| Line 968: | Line 1047: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_is_input_rebindable_keyboard=== |
| Native/C function | Native/C function | ||
| Line 981: | Line 1060: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_is_loading=== |
| Native/C function | Native/C function | ||
| Line 994: | Line 1073: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_is_multiplayer=== |
| Native/C function | Native/C function | ||
| Line 1009: | Line 1088: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_is_notification_holomap_set=== |
| Native/C function | Native/C function | ||
| Line 1022: | Line 1101: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_is_respawn_menu_option_available=== |
| Native/C function | Native/C function | ||
| Line 1035: | Line 1114: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_is_save_game_available=== |
| Native/C function | Native/C function | ||
| Line 1048: | Line 1127: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_is_show_controls=== |
| Native/C function | Native/C function | ||
| Line 1061: | Line 1140: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_is_show_subtitles=== |
| Native/C function | Native/C function | ||
| Line 1074: | Line 1153: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_is_show_tooltips=== |
| Native/C function | Native/C function | ||
| Line 1087: | Line 1166: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_is_show_voice_chat_others=== |
| Native/C function | Native/C function | ||
| Line 1100: | Line 1179: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_is_show_voice_chat_self=== |
| Native/C function | Native/C function | ||
| Line 1113: | Line 1192: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_is_show_vr_multiplayer_warning=== |
| Native/C function | Native/C function | ||
| Line 1126: | Line 1205: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_is_vr=== |
| Native/C function | Native/C function | ||
| + | |||
| + | Return '' | ||
| Usable in: | Usable in: | ||
| Line 1143: | Line 1224: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_join_password=== |
| Native/C function | Native/C function | ||
| Line 1156: | Line 1237: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_key_name=== |
| Native/C function | Native/C function | ||
| Line 1170: | Line 1251: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_keyboard_back_opens_pause=== |
| Native/C function | Native/C function | ||
| Line 1183: | Line 1264: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_loc=== |
| Native/C function | Native/C function | ||
| + | |||
| + | Return the localized string for the given index word/phrase from the '' | ||
| + | < | ||
| + | update_get_loc(e_loc.upp_paste) | ||
| + | </ | ||
| + | Will return " | ||
| Usable in: | Usable in: | ||
| Line 1226: | Line 1313: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_local_peer_id=== |
| Native/C function | Native/C function | ||
| + | |||
| + | Get the ID of the current player. | ||
| Usable in: | Usable in: | ||
| Line 1239: | Line 1328: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_local_team_id=== |
| Native/C function | Native/C function | ||
| + | |||
| + | Get the team ID of the current player. | ||
| Usable in: | Usable in: | ||
| Line 1253: | Line 1344: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_logic_tick=== |
| Native/C function | Native/C function | ||
| + | |||
| + | Get the logic tick. This is the game simulation counter starting at zero the moment the map is crated. It increments by one every simulation frame. The game is tuned such that a second of real time covers 30 game ticks. | ||
| + | |||
| + | During the span of an '' | ||
| + | |||
| + | It can be thought of as a primitive low-res clock. | ||
| Usable in: | Usable in: | ||
| Line 1272: | Line 1369: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_map_destroyed_vehicle=== |
| Native/C function | Native/C function | ||
| + | |||
| + | Get an object representing a recently destroyed vehicle. Used along with '' | ||
| + | |||
| + | Destroyed vehicles have several methods. | ||
| + | |||
| + | * '' | ||
| + | * get a '' | ||
| + | * '' | ||
| + | * get the team ID of the destroyed vehicle | ||
| + | * '' | ||
| + | * get float in range 0-1 based on the age of destruction, | ||
| Usable in: | Usable in: | ||
| Line 1285: | Line 1393: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_map_destroyed_vehicle_count=== |
| Native/C function | Native/C function | ||
| + | |||
| + | Get the number of destroyed vehicles visible on the game map. | ||
| Usable in: | Usable in: | ||
| Line 1298: | Line 1408: | ||
| ---- | ---- | ||
| - | '' | + | === update_get_map_vehicle_by_id |
| Native/C function | Native/C function | ||
| + | |||
| + | Get an object representing a player or AI controlled unit in game, the unit may be docked or active. | ||
| + | |||
| + | The HUD can obtain 3D position (lat-lon-alt) information about a unit where the screen scripts can only obtain 2D (lat-lon). | ||
| + | |||
| + | The HUD can also see unit waypoints since update 1.5.16. | ||
| + | |||
| + | Bridge screens can fully get/set waypoint data for all units on all teams. | ||
| + | |||
| + | vehicle objects have many methods, the most commonly used are: | ||
| + | |||
| + | * '' | ||
| + | * locking/ | ||
| + | * '' | ||
| + | * get the vehicle ID number. | ||
| + | * '' | ||
| + | * get the vehicle type (a value in the '' | ||
| + | * '' | ||
| + | * get the vehicle team number | ||
| + | * '' | ||
| + | * get the vehicle team number | ||
| + | * '' | ||
| + | * get the vehicle 2D position as a '' | ||
| + | * '' | ||
| + | * get the vehicle 3D position as a '' | ||
| Usable in: | Usable in: | ||
| Line 1310: | Line 1445: | ||
| * screen_weapons_support.lua | * screen_weapons_support.lua | ||
| * vehicle_hud.lua | * vehicle_hud.lua | ||
| + | |||
| Example call: | Example call: | ||
| '' | '' | ||
| - | < | + | |
| + | < | ||
| + | local attached_vehicle = update_get_map_vehicle_by_id(attached_vehicle_id) | ||
| + | </ | ||
| ---- | ---- | ||
| - | '' | + | |
| + | |||
| + | ===update_get_map_vehicle_by_index=== | ||
| Native/C function | Native/C function | ||
| Line 1336: | Line 1477: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_map_vehicle_count=== |
| Native/C function | Native/C function | ||
| Line 1356: | Line 1497: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_map_vehicle_position_relate_to_parent_vehicle=== |
| Native/C function | Native/C function | ||
| Line 1370: | Line 1511: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_message_box_type=== |
| Native/C function | Native/C function | ||
| Line 1383: | Line 1524: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_missile_by_id=== |
| Native/C function | Native/C function | ||
| Line 1396: | Line 1537: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_missile_by_index=== |
| Native/C function | Native/C function | ||
| Line 1410: | Line 1551: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_missile_count=== |
| Native/C function | Native/C function | ||
| Line 1424: | Line 1565: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_mod_details=== |
| Native/C function | Native/C function | ||
| Line 1437: | Line 1578: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_mod_incompatible_active_mods=== |
| Native/C function | Native/C function | ||
| Line 1450: | Line 1591: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_mod_workshop_upload_status=== |
| Native/C function | Native/C function | ||
| Line 1463: | Line 1604: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_mouse_flight_axis=== |
| Native/C function | Native/C function | ||
| Line 1476: | Line 1617: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_mouse_flight_mode=== |
| Native/C function | Native/C function | ||
| Line 1489: | Line 1630: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_network_time_since_recv=== |
| Native/C function | Native/C function | ||
| Line 1502: | Line 1643: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_network_timeout=== |
| Native/C function | Native/C function | ||
| Line 1515: | Line 1656: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_new_game_base_difficulty=== |
| Native/C function | Native/C function | ||
| Line 1528: | Line 1669: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_new_game_blueprints=== |
| Native/C function | Native/C function | ||
| Line 1541: | Line 1682: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_new_game_carrier_count_per_team=== |
| Native/C function | Native/C function | ||
| Line 1554: | Line 1695: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_new_game_is_tutorial=== |
| Native/C function | Native/C function | ||
| Line 1567: | Line 1708: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_new_game_island_count=== |
| Native/C function | Native/C function | ||
| Line 1580: | Line 1721: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_new_game_island_count_per_team=== |
| Native/C function | Native/C function | ||
| Line 1593: | Line 1734: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_new_game_loadout_type=== |
| Native/C function | Native/C function | ||
| Line 1606: | Line 1747: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_new_game_team_count_ai=== |
| Native/C function | Native/C function | ||
| Line 1619: | Line 1760: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_new_game_team_count_human=== |
| Native/C function | Native/C function | ||
| Line 1632: | Line 1773: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_notification_holomap=== |
| Native/C function | Native/C function | ||
| Line 1645: | Line 1786: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_notification_log=== |
| Native/C function | Native/C function | ||
| Line 1658: | Line 1799: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_notification_log_count=== |
| Native/C function | Native/C function | ||
| Line 1671: | Line 1812: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_ocean_current_velocity=== |
| Native/C function | Native/C function | ||
| Line 1684: | Line 1825: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_ocean_depth_factor=== |
| Native/C function | Native/C function | ||
| Line 1697: | Line 1838: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_peer_count=== |
| Native/C function | Native/C function | ||
| Line 1710: | Line 1851: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_peer_id=== |
| Native/C function | Native/C function | ||
| Line 1723: | Line 1864: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_peer_index_by_id=== |
| Native/C function | Native/C function | ||
| Line 1736: | Line 1877: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_peer_is_admin=== |
| Native/C function | Native/C function | ||
| Line 1750: | Line 1891: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_peer_is_voice_muted=== |
| Native/C function | Native/C function | ||
| Line 1763: | Line 1904: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_peer_is_voice_transmit=== |
| Native/C function | Native/C function | ||
| Line 1776: | Line 1917: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_peer_name=== |
| Native/C function | Native/C function | ||
| Line 1790: | Line 1931: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_peer_team=== |
| Native/C function | Native/C function | ||
| Line 1803: | Line 1944: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_rebinding_gamepad=== |
| Native/C function | Native/C function | ||
| Line 1818: | Line 1959: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_rebinding_keyboard=== |
| Native/C function | Native/C function | ||
| Line 1833: | Line 1974: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_render_buffer_age=== |
| Native/C function | Native/C function | ||
| Line 1846: | Line 1987: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_resource_inventory_category_count=== |
| Native/C function | Native/C function | ||
| Line 1859: | Line 2000: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_resource_inventory_category_data=== |
| Native/C function | Native/C function | ||
| Line 1872: | Line 2013: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_resource_inventory_item_count=== |
| Native/C function | Native/C function | ||
| Line 1886: | Line 2027: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_resource_inventory_item_data=== |
| Native/C function | Native/C function | ||
| Line 1899: | Line 2040: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_resource_item_for_definition=== |
| Native/C function | Native/C function | ||
| Line 1912: | Line 2053: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_resource_item_hidden=== |
| Native/C function | Native/C function | ||
| Line 1926: | Line 2067: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_resource_item_hidden_facility_production=== |
| Native/C function | Native/C function | ||
| Line 1939: | Line 2080: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_respawn_carrier_id=== |
| Native/C function | Native/C function | ||
| Line 1952: | Line 2093: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_save_slots=== |
| Native/C function | Native/C function | ||
| Line 1966: | Line 2107: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_screen_input=== |
| Native/C function | Native/C function | ||
| Line 1979: | Line 2120: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_screen_state_active=== |
| Native/C function | Native/C function | ||
| Line 1994: | Line 2135: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_screen_team_id=== |
| Native/C function | Native/C function | ||
| Line 2011: | Line 2152: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_screen_vehicle=== |
| Native/C function | Native/C function | ||
| Line 2044: | Line 2185: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_server_list=== |
| Native/C function | Native/C function | ||
| Line 2057: | Line 2198: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_server_meta=== |
| Native/C function | Native/C function | ||
| Line 2070: | Line 2211: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_server_name=== |
| Native/C function | Native/C function | ||
| Line 2083: | Line 2224: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_skin_color_options=== |
| Native/C function | Native/C function | ||
| Line 2096: | Line 2237: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_team=== |
| Native/C function | Native/C function | ||
| Line 2114: | Line 2255: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_team_color=== |
| Native/C function | Native/C function | ||
| Line 2132: | Line 2273: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_team_transmission_count=== |
| Native/C function | Native/C function | ||
| Line 2145: | Line 2286: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_team_transmission_name=== |
| Native/C function | Native/C function | ||
| Line 2158: | Line 2299: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_tile_by_id=== |
| Native/C function | Native/C function | ||
| Line 2175: | Line 2316: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_tile_by_index=== |
| Native/C function | Native/C function | ||
| Line 2193: | Line 2334: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_tile_count=== |
| Native/C function | Native/C function | ||
| Line 2211: | Line 2352: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_time_ms=== |
| Native/C function | Native/C function | ||
| Line 2224: | Line 2365: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_transmission_playback_progress=== |
| Native/C function | Native/C function | ||
| Line 2237: | Line 2378: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_transmission_playing_index=== |
| Native/C function | Native/C function | ||
| Line 2250: | Line 2391: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_ui_scale=== |
| Native/C function | Native/C function | ||
| Line 2263: | Line 2404: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_vehicle_by_id=== |
| Native/C function | Native/C function | ||
| Line 2282: | Line 2423: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_version=== |
| Native/C function | Native/C function | ||
| Line 2295: | Line 2436: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_weapon_line_by_index=== |
| Native/C function | Native/C function | ||
| Line 2308: | Line 2449: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_weapon_line_count=== |
| Native/C function | Native/C function | ||
| Line 2321: | Line 2462: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_weather_fog_factor=== |
| Native/C function | Native/C function | ||
| Line 2334: | Line 2475: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_weather_lightning_factor=== |
| Native/C function | Native/C function | ||
| Line 2347: | Line 2488: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_weather_precipitation_factor=== |
| Native/C function | Native/C function | ||
| Line 2360: | Line 2501: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_weather_wind_velocity=== |
| Native/C function | Native/C function | ||
| Line 2373: | Line 2514: | ||
| ---- | ---- | ||
| - | '' | + | ===update_get_workshop_published_mods=== |
| Native/C function | Native/C function | ||
| Line 2386: | Line 2527: | ||
| ---- | ---- | ||
| - | '' | + | ===update_gun_funnel=== |
| Lua defined function in vehicle_hud.lua | Lua defined function in vehicle_hud.lua | ||
| Line 2399: | Line 2540: | ||
| ---- | ---- | ||
| - | '' | + | ===update_interaction_ui=== |
| Lua defined function in pause_menu.lua | Lua defined function in pause_menu.lua | ||
| Line 2419: | Line 2560: | ||
| ---- | ---- | ||
| - | '' | + | ===update_launch_carrier=== |
| Native/C function | Native/C function | ||
| Line 2432: | Line 2573: | ||
| ---- | ---- | ||
| - | '' | + | ===update_map_cursor_state=== |
| Lua defined function in screen_inventory.lua | Lua defined function in screen_inventory.lua | ||
| Line 2445: | Line 2586: | ||
| ---- | ---- | ||
| - | '' | + | ===update_map_dismiss_notification=== |
| Native/C function | Native/C function | ||
| Line 2458: | Line 2599: | ||
| ---- | ---- | ||
| - | '' | + | ===update_map_hovered=== |
| Lua defined function in screen_inventory.lua | Lua defined function in screen_inventory.lua | ||
| Line 2471: | Line 2612: | ||
| ---- | ---- | ||
| - | '' | + | ===update_play_sound=== |
| Native/C function | Native/C function | ||
| Line 2490: | Line 2631: | ||
| ---- | ---- | ||
| - | '' | + | ===update_play_transmission=== |
| Native/C function | Native/C function | ||
| Line 2503: | Line 2644: | ||
| ---- | ---- | ||
| - | '' | + | ===update_print_metatable=== |
| Native/C function | Native/C function | ||
| Line 2516: | Line 2657: | ||
| ---- | ---- | ||
| - | '' | + | ===update_print_regions=== |
| Native/C function | Native/C function | ||
| Line 2529: | Line 2670: | ||
| ---- | ---- | ||
| - | '' | + | ===update_refresh_workshop_published_mods=== |
| Native/C function | Native/C function | ||
| Line 2542: | Line 2683: | ||
| ---- | ---- | ||
| - | '' | + | ===update_repeat=== |
| Lua defined function in library_ui.lua | Lua defined function in library_ui.lua | ||
| Line 2555: | Line 2696: | ||
| ---- | ---- | ||
| - | '' | + | ===update_screen_overrides=== |
| Lua defined function in library_util.lua | Lua defined function in library_util.lua | ||
| Line 2597: | Line 2738: | ||
| ---- | ---- | ||
| - | '' | + | ===update_self_destruct_override=== |
| Lua defined function in library_util.lua | Lua defined function in library_util.lua | ||
| Line 2611: | Line 2752: | ||
| ---- | ---- | ||
| - | '' | + | ===update_set_connect_address=== |
| Native/C function | Native/C function | ||
| Line 2624: | Line 2765: | ||
| ---- | ---- | ||
| - | '' | + | ===update_set_go_code=== |
| Native/C function | Native/C function | ||
| Line 2637: | Line 2778: | ||
| ---- | ---- | ||
| - | '' | + | ===update_set_host_max_players=== |
| Native/C function | Native/C function | ||
| Line 2650: | Line 2791: | ||
| ---- | ---- | ||
| - | '' | + | ===update_set_host_password=== |
| Native/C function | Native/C function | ||
| Line 2663: | Line 2804: | ||
| ---- | ---- | ||
| - | '' | + | ===update_set_is_block_input=== |
| Native/C function | Native/C function | ||
| Line 2676: | Line 2817: | ||
| ---- | ---- | ||
| - | '' | + | ===update_set_is_mod_enabled=== |
| Native/C function | Native/C function | ||
| Line 2689: | Line 2830: | ||
| ---- | ---- | ||
| - | '' | + | ===update_set_is_pause_simulation=== |
| Native/C function | Native/C function | ||
| Line 2702: | Line 2843: | ||
| ---- | ---- | ||
| - | '' | + | ===update_set_is_text_input_mode=== |
| Native/C function | Native/C function | ||
| Line 2716: | Line 2857: | ||
| ---- | ---- | ||
| - | '' | + | ===update_set_is_visible=== |
| Native/C function | Native/C function | ||
| Line 2729: | Line 2870: | ||
| ---- | ---- | ||
| - | '' | + | ===update_set_join_password=== |
| Native/C function | Native/C function | ||
| Line 2742: | Line 2883: | ||
| ---- | ---- | ||
| - | '' | + | ===update_set_new_game_base_difficulty=== |
| Native/C function | Native/C function | ||
| Line 2755: | Line 2896: | ||
| ---- | ---- | ||
| - | '' | + | ===update_set_new_game_blueprints=== |
| Native/C function | Native/C function | ||
| Line 2768: | Line 2909: | ||
| ---- | ---- | ||
| - | '' | + | ===update_set_new_game_carrier_count_per_team=== |
| Native/C function | Native/C function | ||
| Line 2781: | Line 2922: | ||
| ---- | ---- | ||
| - | '' | + | ===update_set_new_game_is_tutorial=== |
| Native/C function | Native/C function | ||
| Line 2794: | Line 2935: | ||
| ---- | ---- | ||
| - | '' | + | ===update_set_new_game_island_count=== |
| Native/C function | Native/C function | ||
| Line 2807: | Line 2948: | ||
| ---- | ---- | ||
| - | '' | + | ===update_set_new_game_island_count_per_team=== |
| Native/C function | Native/C function | ||
| Line 2820: | Line 2961: | ||
| ---- | ---- | ||
| - | '' | + | ===update_set_new_game_loadout_type=== |
| Native/C function | Native/C function | ||
| Line 2833: | Line 2974: | ||
| ---- | ---- | ||
| - | '' | + | ===update_set_new_game_team_count_ai=== |
| Native/C function | Native/C function | ||
| Line 2846: | Line 2987: | ||
| ---- | ---- | ||
| - | '' | + | ===update_set_new_game_team_count_human=== |
| Native/C function | Native/C function | ||
| Line 2859: | Line 3000: | ||
| ---- | ---- | ||
| - | '' | + | ===update_set_observed_vehicle=== |
| Native/C function | Native/C function | ||
| Line 2872: | Line 3013: | ||
| ---- | ---- | ||
| - | '' | + | ===update_set_screen_background_clip=== |
| Native/C function | Native/C function | ||
| Line 2885: | Line 3026: | ||
| ---- | ---- | ||
| - | '' | + | ===update_set_screen_background_color=== |
| Native/C function | Native/C function | ||
| Line 2898: | Line 3039: | ||
| ---- | ---- | ||
| - | '' | + | ===update_set_screen_background_is_render_islands=== |
| Native/C function | Native/C function | ||
| Line 2916: | Line 3057: | ||
| ---- | ---- | ||
| - | '' | + | ===update_set_screen_background_tile_color_custom=== |
| Native/C function | Native/C function | ||
| Line 2929: | Line 3070: | ||
| ---- | ---- | ||
| - | '' | + | ===update_set_screen_background_type=== |
| Native/C function | Native/C function | ||
| Line 2950: | Line 3091: | ||
| ---- | ---- | ||
| - | '' | + | ===update_set_screen_camera_attach_vehicle=== |
| Native/C function | Native/C function | ||
| Line 2964: | Line 3105: | ||
| ---- | ---- | ||
| - | '' | + | ===update_set_screen_camera_cull_distance=== |
| Native/C function | Native/C function | ||
| Line 2977: | Line 3118: | ||
| ---- | ---- | ||
| - | '' | + | ===update_set_screen_camera_is_render_ocean=== |
| Native/C function | Native/C function | ||
| Line 2990: | Line 3131: | ||
| ---- | ---- | ||
| - | '' | + | ===update_set_screen_camera_lod_level=== |
| Native/C function | Native/C function | ||
| Line 3003: | Line 3144: | ||
| ---- | ---- | ||
| - | '' | + | ===update_set_screen_camera_pos_orientation=== |
| Native/C function | Native/C function | ||
| Line 3016: | Line 3157: | ||
| ---- | ---- | ||
| - | '' | + | ===update_set_screen_camera_render_attached_vehicle=== |
| Native/C function | Native/C function | ||
| Line 3029: | Line 3170: | ||
| ---- | ---- | ||
| - | '' | + | ===update_set_screen_map_position_scale=== |
| Native/C function | Native/C function | ||
| Line 3047: | Line 3188: | ||
| ---- | ---- | ||
| - | '' | + | ===update_set_screen_state_exit=== |
| Native/C function | Native/C function | ||
| Line 3090: | Line 3231: | ||
| ---- | ---- | ||
| - | '' | + | ===update_set_screen_vehicle_control_id=== |
| Native/C function | Native/C function | ||
| Line 3104: | Line 3245: | ||
| ---- | ---- | ||
| - | '' | + | ===update_set_server_name=== |
| Native/C function | Native/C function | ||
| Line 3117: | Line 3258: | ||
| ---- | ---- | ||
| - | '' | + | ===update_stop_transmission=== |
| Native/C function | Native/C function | ||
| Line 3130: | Line 3271: | ||
| ---- | ---- | ||
| - | '' | + | ===update_string_from_epoch=== |
| Native/C function | Native/C function | ||
| Line 3144: | Line 3285: | ||
| ---- | ---- | ||
| - | '' | + | ===update_ui_add_triangle=== |
| Native/C function | Native/C function | ||
| Line 3163: | Line 3304: | ||
| ---- | ---- | ||
| - | '' | + | ===update_ui_begin_triangles=== |
| Native/C function | Native/C function | ||
| Line 3182: | Line 3323: | ||
| ---- | ---- | ||
| - | '' | + | ===update_ui_circle=== |
| Lua defined function in library_ui.lua | Lua defined function in library_ui.lua | ||
| Line 3197: | Line 3338: | ||
| ---- | ---- | ||
| - | '' | + | ===update_ui_end_triangles=== |
| Native/C function | Native/C function | ||
| Line 3216: | Line 3357: | ||
| ---- | ---- | ||
| - | '' | + | ===update_ui_event=== |
| Lua defined function in library_ui.lua | Lua defined function in library_ui.lua | ||
| Line 3234: | Line 3375: | ||
| ---- | ---- | ||
| - | '' | + | ===update_ui_format_peer_display_name=== |
| Native/C function | Native/C function | ||
| Line 3247: | Line 3388: | ||
| ---- | ---- | ||
| - | '' | + | ===update_ui_get_image_size=== |
| Native/C function | Native/C function | ||
| Line 3263: | Line 3404: | ||
| ---- | ---- | ||
| - | '' | + | ===update_ui_get_offset=== |
| Native/C function | Native/C function | ||
| Line 3276: | Line 3417: | ||
| ---- | ---- | ||
| - | '' | + | ===update_ui_get_text_size=== |
| Native/C function | Native/C function | ||
| Line 3299: | Line 3440: | ||
| ---- | ---- | ||
| - | '' | + | ===update_ui_image=== |
| Native/C function | Native/C function | ||
| Line 3341: | Line 3482: | ||
| ---- | ---- | ||
| - | '' | + | ===update_ui_image_power=== |
| Native/C function | Native/C function | ||
| Line 3354: | Line 3495: | ||
| ---- | ---- | ||
| - | '' | + | ===update_ui_image_rot=== |
| Native/C function | Native/C function | ||
| Line 3371: | Line 3512: | ||
| ---- | ---- | ||
| - | '' | + | ===update_ui_line=== |
| Native/C function | Native/C function | ||
| Line 3399: | Line 3540: | ||
| ---- | ---- | ||
| - | '' | + | ===update_ui_pop_alpha=== |
| Native/C function | Native/C function | ||
| Line 3413: | Line 3554: | ||
| ---- | ---- | ||
| - | '' | + | ===update_ui_pop_clip=== |
| Native/C function | Native/C function | ||
| Line 3433: | Line 3574: | ||
| ---- | ---- | ||
| - | '' | + | ===update_ui_pop_offset=== |
| Native/C function | Native/C function | ||
| Line 3470: | Line 3611: | ||
| ---- | ---- | ||
| - | '' | + | ===update_ui_pop_scale=== |
| Native/C function | Native/C function | ||
| Line 3483: | Line 3624: | ||
| ---- | ---- | ||
| - | '' | + | ===update_ui_push_alpha=== |
| Native/C function | Native/C function | ||
| Line 3497: | Line 3638: | ||
| ---- | ---- | ||
| - | '' | + | ===update_ui_push_clip=== |
| Native/C function | Native/C function | ||
| Line 3517: | Line 3658: | ||
| ---- | ---- | ||
| - | '' | + | ===update_ui_push_offset=== |
| Native/C function | Native/C function | ||
| Line 3554: | Line 3695: | ||
| ---- | ---- | ||
| - | '' | + | ===update_ui_push_scale=== |
| Native/C function | Native/C function | ||
| Line 3567: | Line 3708: | ||
| ---- | ---- | ||
| - | '' | + | ===update_ui_rectangle=== |
| Native/C function | Native/C function | ||
| Line 3607: | Line 3748: | ||
| ---- | ---- | ||
| - | '' | + | ===update_ui_rectangle_outline=== |
| Lua defined function in library_ui.lua | Lua defined function in library_ui.lua | ||
| Line 3639: | Line 3780: | ||
| ---- | ---- | ||
| - | '' | + | ===update_ui_set_back_color=== |
| Native/C function | Native/C function | ||
| Line 3653: | Line 3794: | ||
| ---- | ---- | ||
| - | '' | + | ===update_ui_set_text_color=== |
| Native/C function | Native/C function | ||
| Line 3669: | Line 3810: | ||
| ---- | ---- | ||
| - | '' | + | ===update_ui_text=== |
| Native/C function | Native/C function | ||
| Line 3712: | Line 3853: | ||
| ---- | ---- | ||
| - | '' | + | ===update_ui_text_scale=== |
| Native/C function | Native/C function | ||
| Line 3727: | Line 3868: | ||
| ---- | ---- | ||
| - | '' | + | ===update_update_workshop_mod=== |
| Native/C function | Native/C function | ||
| Line 3740: | Line 3881: | ||
| ---- | ---- | ||
| - | '' | + | ===update_world_to_screen=== |
| Native/C function | Native/C function | ||
| Line 3754: | Line 3895: | ||
| Process finished with exit code 0 | Process finished with exit code 0 | ||
| - | |||
luafunctionref.1736358593.txt.gz · Last modified: 2025/01/08 17:49 by bredroll
