User Tools

Site Tools


luafunctionref

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
luafunctionref [2025/01/08 17:49] bredrollluafunctionref [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/interaction. This is a (not exhaustive) reference for functions available to be called in the lua scripts used for screen rendering/interaction.
 +
 +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.  There are broadly 3 kinds of files:
 +
 +  * 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 ''begin()'' function (if it is defined).  For screen scripts, during the ''begin()'' call you will be able to call ''begin_get_ui_region_index()'' and ''begin_get_screen_name()''. You will not generally be able to call any of the other ''update_'' native functions.
 +
 +=== 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 "refresh_interval" (see ''<screen>'' tags in game object XML files).  For the HUD the ''update()'' function is called every game tick (30 times per second).
 +
 +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 ''input'' functions, these are used to send in text, mouse and controller inputs into the script. 
 +
 +==== 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/text drawing calls are made from here to draw the various icons and UI elements.
 +
 +=== Refresh Rate ===
 +
 +I have recently discovered there is another factor that influences how often a script ''update()'' function is called.  The further away from the screen your character is, the larger the update interval. If you leave the bridge and walk down to the flight deck, by the time you get there the bridge screens will update at most only once every two seconds.
 +
 +
 +==== Functions ======
  
 ---- ----
-''function begin_get_screen_name''+===begin_get_screen_name===
  
 Native/C function Native/C function
 +
 +Can be called only during the ''begin()'' call cycle.
 +
 +Returns the name value of the currently executing screen. This is the value set in ''<screen>'' in the game object XML file for the carrier (or any other unit you attach a screen to). eg:
 +
 +<code>
 +<screen name="screen_veh_r" 
 +   display_name_loc="680"
 +   script_file_name="scripts/screen_vehicle_control.lua" 
 +   body_index="0" 
 +   seat_index="0" 
 +   type="3" 
 +   refresh_interval="1.00000000e+00"
 +    help_tag="veh_con_screen_vehicle_control">
 +</code>
 +
 +If called within a ''begin()'' function in ''screen_vehicle_control.lua'', ''begin_get_screen_name()'' would return "screen_veh_r" for this instance of the screen.
  
 Usable in: Usable in:
  
-  * screen_inventory.lua +  * screen_*.lua 
-  * screen_navigation.lua+
 Example call: Example call:
  
Line 18: Line 89:
  
 ---- ----
-''function begin_get_ui_region_index''+===begin_get_ui_region_index===
  
 Native/C function Native/C function
 +
 +Can be called only during the ''begin()'' call cycle.
 +
 +Return the index number for a specific UI icon image.  This is only really used as a shortcut to memoize icon indices in ''library_util.lua'' to create the ''atlas_icons'' table (which is easier and probably faster to work with than calling this function).
  
 Usable in: Usable in:
Line 40: Line 115:
  
 ---- ----
-''function begin_load''+===begin_load===
  
 Lua defined function in library_util.lua Lua defined function in library_util.lua
Line 86: Line 161:
  
 ---- ----
-''function begin_load_inventory_data''+===begin_load_inventory_data===
  
 Lua defined function in library_vehicle.lua Lua defined function in library_vehicle.lua
 +
 +Called early in ''begin()'' to memoize inventory item index values and cargo statistics like weight, abbreviations and costs.
  
 Usable in: Usable in:
Line 104: Line 181:
  
 ---- ----
-''function update_add_ui_interaction''+===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:
  
 ---- ----
-''function update_add_ui_interaction_special''+===update_add_ui_interaction_special===
  
 Lua defined function in interactions.lua Lua defined function in interactions.lua
Line 164: Line 243:
  
 ---- ----
-''function update_animations''+===update_animations===
  
 Lua defined function in vehicle_hud.lua Lua defined function in vehicle_hud.lua
Line 177: Line 256:
  
 ---- ----
-''function update_boot_override''+===update_boot_override===
  
 Lua defined function in library_util.lua Lua defined function in library_util.lua
Line 190: Line 269:
  
 ---- ----
-''function update_camera_local_rotate_inv''+===update_camera_local_rotate_inv===
  
 Native/C function Native/C function
Line 203: Line 282:
  
 ---- ----
-''function update_chat''+===update_chat===
  
 Lua defined function in interactions.lua Lua defined function in interactions.lua
Line 216: Line 295:
  
 ---- ----
-''function update_create_workshop_mod''+===update_create_workshop_mod===
  
 Native/C function Native/C function
Line 229: Line 308:
  
 ---- ----
-''function update_cursor_state''+===update_cursor_state===
  
 Lua defined function in screen_vehicle_control.lua Lua defined function in screen_vehicle_control.lua
Line 242: Line 321:
  
 ---- ----
-''function update_damage_zones''+===update_damage_zones===
  
 Lua defined function in screen_damage.lua Lua defined function in screen_damage.lua
Line 255: Line 334:
  
 ---- ----
-''function update_exit_pause_menu''+===update_exit_pause_menu===
  
 Native/C function Native/C function
Line 268: Line 347:
  
 ---- ----
-''function update_get_active_input_type''+===update_get_active_input_type===
  
 Native/C function Native/C function
Line 296: Line 375:
  
 ---- ----
-''function update_get_angle_2d''+===update_get_angle_2d===
  
 Native/C function Native/C function
Line 309: Line 388:
  
 ---- ----
-''function update_get_application_state''+===update_get_application_state===
  
 Native/C function Native/C function
Line 322: Line 401:
  
 ---- ----
-''function update_get_attachment_ammo_item_type''+===update_get_attachment_ammo_item_type===
  
 Native/C function Native/C function
Line 335: Line 414:
  
 ---- ----
-''function update_get_attachment_option''+===update_get_attachment_option===
  
 Native/C function Native/C function
Line 348: Line 427:
  
 ---- ----
-''function update_get_attachment_option_count''+===update_get_attachment_option_count===
  
 Native/C function Native/C function
Line 361: Line 440:
  
 ---- ----
-''function update_get_attachment_option_hidden''+===update_get_attachment_option_hidden===
  
 Native/C function Native/C function
Line 374: Line 453:
  
 ---- ----
-''function update_get_camera_forward''+===update_get_camera_forward===
  
 Native/C function Native/C function
Line 387: Line 466:
  
 ---- ----
-''function update_get_camera_fov''+===update_get_camera_fov===
  
 Native/C function Native/C function
Line 400: Line 479:
  
 ---- ----
-''function update_get_camera_heading''+===update_get_camera_heading===
  
 Native/C function Native/C function
Line 413: Line 492:
  
 ---- ----
-''function update_get_camera_position''+===update_get_camera_position===
  
 Native/C function Native/C function
Line 426: Line 505:
  
 ---- ----
-''function update_get_camera_side''+===update_get_camera_side===
  
 Native/C function Native/C function
Line 439: Line 518:
  
 ---- ----
-''function update_get_chat_messages''+===update_get_chat_messages===
  
 Native/C function Native/C function
Line 452: Line 531:
  
 ---- ----
-''function update_get_connect_address''+===update_get_connect_address===
  
 Native/C function Native/C function
Line 465: Line 544:
  
 ---- ----
-''function update_get_currency_log''+===update_get_currency_log===
  
 Native/C function Native/C function
Line 478: Line 557:
  
 ---- ----
-''function update_get_currency_log_count''+===update_get_currency_log_count===
  
 Native/C function Native/C function
Line 491: Line 570:
  
 ---- ----
-''function update_get_definition_vehicle_stats''+===update_get_definition_vehicle_stats===
  
 Native/C function Native/C function
Line 505: Line 584:
  
 ---- ----
-''function update_get_delivery_log''+===update_get_delivery_log===
  
 Native/C function Native/C function
Line 518: Line 597:
  
 ---- ----
-''function update_get_delivery_log_count''+===update_get_delivery_log_count===
  
 Native/C function Native/C function
Line 531: Line 610:
  
 ---- ----
-''function update_get_friend_games''+===update_get_friend_games===
  
 Native/C function Native/C function
Line 544: Line 623:
  
 ---- ----
-''function update_get_game_input_category''+===update_get_game_input_category===
  
 Native/C function Native/C function
Line 557: Line 636:
  
 ---- ----
-''function update_get_game_input_count''+===update_get_game_input_count===
  
 Native/C function Native/C function
Line 570: Line 649:
  
 ---- ----
-''function update_get_game_input_name''+===update_get_game_input_name===
  
 Native/C function Native/C function
Line 583: Line 662:
  
 ---- ----
-''function update_get_game_settings''+===update_get_game_settings===
  
 Native/C function Native/C function
Line 599: Line 678:
  
 ---- ----
-''function update_get_gfx_resolution_modes''+===update_get_gfx_resolution_modes===
  
 Native/C function Native/C function
Line 612: Line 691:
  
 ---- ----
-''function update_get_hair_color_options''+===update_get_hair_color_options===
  
 Native/C function Native/C function
Line 625: Line 704:
  
 ---- ----
-''function update_get_host_connect_token''+===update_get_host_connect_token===
  
 Native/C function Native/C function
Line 638: Line 717:
  
 ---- ----
-''function update_get_host_max_players''+===update_get_host_max_players===
  
 Native/C function Native/C function
Line 651: Line 730:
  
 ---- ----
-''function update_get_host_password''+===update_get_host_password===
  
 Native/C function Native/C function
Line 664: Line 743:
  
 ---- ----
-''function update_get_input_binding_gamepad_axis''+===update_get_input_binding_gamepad_axis===
  
 Native/C function Native/C function
Line 678: Line 757:
  
 ---- ----
-''function update_get_input_binding_gamepad_button''+===update_get_input_binding_gamepad_button===
  
 Native/C function Native/C function
Line 692: Line 771:
  
 ---- ----
-''function update_get_input_binding_is_axis_inverted''+===update_get_input_binding_is_axis_inverted===
  
 Native/C function Native/C function
Line 705: Line 784:
  
 ---- ----
-''function update_get_input_binding_joystick_axis''+===update_get_input_binding_joystick_axis===
  
 Native/C function Native/C function
Line 719: Line 798:
  
 ---- ----
-''function update_get_input_binding_joystick_button''+===update_get_input_binding_joystick_button===
  
 Native/C function Native/C function
Line 733: Line 812:
  
 ---- ----
-''function update_get_input_binding_joystick_connected''+===update_get_input_binding_joystick_connected===
  
 Native/C function Native/C function
Line 746: Line 825:
  
 ---- ----
-''function update_get_input_binding_joystick_guid''+===update_get_input_binding_joystick_guid===
  
 Native/C function Native/C function
Line 759: Line 838:
  
 ---- ----
-''function update_get_input_binding_joystick_name''+===update_get_input_binding_joystick_name===
  
 Native/C function Native/C function
Line 772: Line 851:
  
 ---- ----
-''function update_get_input_binding_keyboard_key''+===update_get_input_binding_keyboard_key===
  
 Native/C function Native/C function
Line 786: Line 865:
  
 ---- ----
-''function update_get_input_binding_keyboard_pointer''+===update_get_input_binding_keyboard_pointer===
  
 Native/C function Native/C function
Line 800: Line 879:
  
 ---- ----
-''function update_get_input_category_name''+===update_get_input_category_name===
  
 Native/C function Native/C function
Line 813: Line 892:
  
 ---- ----
-''function update_get_input_gamepad_axis_value''+===update_get_input_gamepad_axis_value===
  
 Native/C function Native/C function
Line 826: Line 905:
  
 ---- ----
-''function update_get_input_joystick_axis_count''+===update_get_input_joystick_axis_count===
  
 Native/C function Native/C function
Line 839: Line 918:
  
 ---- ----
-''function update_get_input_joystick_axis_value''+===update_get_input_joystick_axis_value===
  
 Native/C function Native/C function
Line 852: Line 931:
  
 ---- ----
-''function update_get_input_joystick_connected''+===update_get_input_joystick_connected===
  
 Native/C function Native/C function
Line 865: Line 944:
  
 ---- ----
-''function update_get_input_joystick_guid''+===update_get_input_joystick_guid===
  
 Native/C function Native/C function
Line 878: Line 957:
  
 ---- ----
-''function update_get_input_joystick_name''+===update_get_input_joystick_name===
  
 Native/C function Native/C function
Line 891: Line 970:
  
 ---- ----
-''function update_get_is_chat_box_available''+===update_get_is_chat_box_available===
  
 Native/C function Native/C function
Line 904: Line 983:
  
 ---- ----
-''function update_get_is_focus_local''+===update_get_is_focus_local===
  
 Native/C function Native/C function
Line 929: Line 1008:
  
 ---- ----
-''function update_get_is_hosting_game''+===update_get_is_hosting_game===
  
 Native/C function Native/C function
Line 942: Line 1021:
  
 ---- ----
-''function update_get_is_input_rebindable_gamepad''+===update_get_is_input_rebindable_gamepad===
  
 Native/C function Native/C function
Line 955: Line 1034:
  
 ---- ----
-''function update_get_is_input_rebindable_gamepad_as_axis''+===update_get_is_input_rebindable_gamepad_as_axis===
  
 Native/C function Native/C function
Line 968: Line 1047:
  
 ---- ----
-''function update_get_is_input_rebindable_keyboard''+===update_get_is_input_rebindable_keyboard===
  
 Native/C function Native/C function
Line 981: Line 1060:
  
 ---- ----
-''function update_get_is_loading''+===update_get_is_loading===
  
 Native/C function Native/C function
Line 994: Line 1073:
  
 ---- ----
-''function update_get_is_multiplayer''+===update_get_is_multiplayer===
  
 Native/C function Native/C function
Line 1009: Line 1088:
  
 ---- ----
-''function update_get_is_notification_holomap_set''+===update_get_is_notification_holomap_set===
  
 Native/C function Native/C function
Line 1022: Line 1101:
  
 ---- ----
-''function update_get_is_respawn_menu_option_available''+===update_get_is_respawn_menu_option_available===
  
 Native/C function Native/C function
Line 1035: Line 1114:
  
 ---- ----
-''function update_get_is_save_game_available''+===update_get_is_save_game_available===
  
 Native/C function Native/C function
Line 1048: Line 1127:
  
 ---- ----
-''function update_get_is_show_controls''+===update_get_is_show_controls===
  
 Native/C function Native/C function
Line 1061: Line 1140:
  
 ---- ----
-''function update_get_is_show_subtitles''+===update_get_is_show_subtitles===
  
 Native/C function Native/C function
Line 1074: Line 1153:
  
 ---- ----
-''function update_get_is_show_tooltips''+===update_get_is_show_tooltips===
  
 Native/C function Native/C function
Line 1087: Line 1166:
  
 ---- ----
-''function update_get_is_show_voice_chat_others''+===update_get_is_show_voice_chat_others===
  
 Native/C function Native/C function
Line 1100: Line 1179:
  
 ---- ----
-''function update_get_is_show_voice_chat_self''+===update_get_is_show_voice_chat_self===
  
 Native/C function Native/C function
Line 1113: Line 1192:
  
 ---- ----
-''function update_get_is_show_vr_multiplayer_warning''+===update_get_is_show_vr_multiplayer_warning===
  
 Native/C function Native/C function
Line 1126: Line 1205:
  
 ---- ----
-''function update_get_is_vr''+===update_get_is_vr===
  
 Native/C function Native/C function
 +
 +Return ''true'' if the game is running in VR mode.
  
 Usable in: Usable in:
Line 1143: Line 1224:
  
 ---- ----
-''function update_get_join_password''+===update_get_join_password===
  
 Native/C function Native/C function
Line 1156: Line 1237:
  
 ---- ----
-''function update_get_key_name''+===update_get_key_name===
  
 Native/C function Native/C function
Line 1170: Line 1251:
  
 ---- ----
-''function update_get_keyboard_back_opens_pause''+===update_get_keyboard_back_opens_pause===
  
 Native/C function Native/C function
Line 1183: Line 1264:
  
 ---- ----
-''function update_get_loc''+===update_get_loc===
  
 Native/C function Native/C function
 +
 +Return the localized string for the given index word/phrase from the ''e_loc'' enum table. Eg, in English, the following:
 +<code>
 +update_get_loc(e_loc.upp_paste)
 +</code>
 +Will return "paste".
  
 Usable in: Usable in:
Line 1226: Line 1313:
  
 ---- ----
-''function update_get_local_peer_id''+===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:
  
 ---- ----
-''function update_get_local_team_id''+===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:
  
 ---- ----
-''function update_get_logic_tick''+===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 ''update'' function call, the value of the current tick will remain the same.
 +
 +It can be thought of as a primitive low-res clock.
  
 Usable in: Usable in:
Line 1272: Line 1369:
  
 ---- ----
-''function update_get_map_destroyed_vehicle''+===update_get_map_destroyed_vehicle===
  
 Native/C function Native/C function
 +
 +Get an object representing a recently destroyed vehicle. Used along with ''update_get_map_destroyed_vehicle_count()''.
 +
 +Destroyed vehicles have several methods.
 +
 +  * ''destroyed:get_position_xz()'' 
 +    * get a ''vec3'' where ''vec3:x()'' is the x coordinate of the destroyed vehicle and ''vec3:y()'' is the z map coordinate of the vehicle (yes, y/z flip don't worry about it)
 +  * ''destroyed:get_team()'' 
 +    * get the team ID of the destroyed vehicle
 +  * ''destroyed:get_factor()'' 
 +    * get float in range 0-1 based on the age of destruction, where 1 is most recent and 0 is oldest.
  
 Usable in: Usable in:
Line 1285: Line 1393:
  
 ---- ----
-''function update_get_map_destroyed_vehicle_count''+===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:
  
 ---- ----
-''function update_get_map_vehicle_by_id''+=== 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:
 +
 +  * ''vehicle:get()''
 +    * locking/housekeeping, return ''true'' if this object can be used and is valid.
 +  * ''vehicle:get_id()''
 +    * get the vehicle ID number.
 +  * ''vehicle:get_definition_index()''
 +    * get the vehicle type (a value in the ''e_game_object_type'' table)
 +  * ''vehicle:get_team()'' (screen only)
 +    * get the vehicle team number
 +  * ''vehicle:get_team_id()'' (HUD only)
 +    * get the vehicle team number
 +  * ''vehicle:get_position_xz()'' (screen only)
 +    * get the vehicle 2D position as a ''vec2''
 +  * ''vehicle:get_position()'' (HUD only)
 +    * get the vehicle 3D position as a ''vec3'' where ''pos:y()'' is the altitude in meters.
  
 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:
  
 ''library_ui.lua''\\ ''library_ui.lua''\\
-<code>local attached_vehicle = update_get_map_vehicle_by_id(attached_vehicle_id)</code>+ 
 +<code -> 
 +local attached_vehicle = update_get_map_vehicle_by_id(attached_vehicle_id) 
 +</code>
  
 ---- ----
-''function update_get_map_vehicle_by_index''+ 
 + 
 +===update_get_map_vehicle_by_index===
  
 Native/C function Native/C function
Line 1336: Line 1477:
  
 ---- ----
-''function update_get_map_vehicle_count''+===update_get_map_vehicle_count===
  
 Native/C function Native/C function
Line 1356: Line 1497:
  
 ---- ----
-''function update_get_map_vehicle_position_relate_to_parent_vehicle''+===update_get_map_vehicle_position_relate_to_parent_vehicle===
  
 Native/C function Native/C function
Line 1370: Line 1511:
  
 ---- ----
-''function update_get_message_box_type''+===update_get_message_box_type===
  
 Native/C function Native/C function
Line 1383: Line 1524:
  
 ---- ----
-''function update_get_missile_by_id''+===update_get_missile_by_id===
  
 Native/C function Native/C function
Line 1396: Line 1537:
  
 ---- ----
-''function update_get_missile_by_index''+===update_get_missile_by_index===
  
 Native/C function Native/C function
Line 1410: Line 1551:
  
 ---- ----
-''function update_get_missile_count''+===update_get_missile_count===
  
 Native/C function Native/C function
Line 1424: Line 1565:
  
 ---- ----
-''function update_get_mod_details''+===update_get_mod_details===
  
 Native/C function Native/C function
Line 1437: Line 1578:
  
 ---- ----
-''function update_get_mod_incompatible_active_mods''+===update_get_mod_incompatible_active_mods===
  
 Native/C function Native/C function
Line 1450: Line 1591:
  
 ---- ----
-''function update_get_mod_workshop_upload_status''+===update_get_mod_workshop_upload_status===
  
 Native/C function Native/C function
Line 1463: Line 1604:
  
 ---- ----
-''function update_get_mouse_flight_axis''+===update_get_mouse_flight_axis===
  
 Native/C function Native/C function
Line 1476: Line 1617:
  
 ---- ----
-''function update_get_mouse_flight_mode''+===update_get_mouse_flight_mode===
  
 Native/C function Native/C function
Line 1489: Line 1630:
  
 ---- ----
-''function update_get_network_time_since_recv''+===update_get_network_time_since_recv===
  
 Native/C function Native/C function
Line 1502: Line 1643:
  
 ---- ----
-''function update_get_network_timeout''+===update_get_network_timeout===
  
 Native/C function Native/C function
Line 1515: Line 1656:
  
 ---- ----
-''function update_get_new_game_base_difficulty''+===update_get_new_game_base_difficulty===
  
 Native/C function Native/C function
Line 1528: Line 1669:
  
 ---- ----
-''function update_get_new_game_blueprints''+===update_get_new_game_blueprints===
  
 Native/C function Native/C function
Line 1541: Line 1682:
  
 ---- ----
-''function update_get_new_game_carrier_count_per_team''+===update_get_new_game_carrier_count_per_team===
  
 Native/C function Native/C function
Line 1554: Line 1695:
  
 ---- ----
-''function update_get_new_game_is_tutorial''+===update_get_new_game_is_tutorial===
  
 Native/C function Native/C function
Line 1567: Line 1708:
  
 ---- ----
-''function update_get_new_game_island_count''+===update_get_new_game_island_count===
  
 Native/C function Native/C function
Line 1580: Line 1721:
  
 ---- ----
-''function update_get_new_game_island_count_per_team''+===update_get_new_game_island_count_per_team===
  
 Native/C function Native/C function
Line 1593: Line 1734:
  
 ---- ----
-''function update_get_new_game_loadout_type''+===update_get_new_game_loadout_type===
  
 Native/C function Native/C function
Line 1606: Line 1747:
  
 ---- ----
-''function update_get_new_game_team_count_ai''+===update_get_new_game_team_count_ai===
  
 Native/C function Native/C function
Line 1619: Line 1760:
  
 ---- ----
-''function update_get_new_game_team_count_human''+===update_get_new_game_team_count_human===
  
 Native/C function Native/C function
Line 1632: Line 1773:
  
 ---- ----
-''function update_get_notification_holomap''+===update_get_notification_holomap===
  
 Native/C function Native/C function
Line 1645: Line 1786:
  
 ---- ----
-''function update_get_notification_log''+===update_get_notification_log===
  
 Native/C function Native/C function
Line 1658: Line 1799:
  
 ---- ----
-''function update_get_notification_log_count''+===update_get_notification_log_count===
  
 Native/C function Native/C function
Line 1671: Line 1812:
  
 ---- ----
-''function update_get_ocean_current_velocity''+===update_get_ocean_current_velocity===
  
 Native/C function Native/C function
Line 1684: Line 1825:
  
 ---- ----
-''function update_get_ocean_depth_factor''+===update_get_ocean_depth_factor===
  
 Native/C function Native/C function
Line 1697: Line 1838:
  
 ---- ----
-''function update_get_peer_count''+===update_get_peer_count===
  
 Native/C function Native/C function
Line 1710: Line 1851:
  
 ---- ----
-''function update_get_peer_id''+===update_get_peer_id===
  
 Native/C function Native/C function
Line 1723: Line 1864:
  
 ---- ----
-''function update_get_peer_index_by_id''+===update_get_peer_index_by_id===
  
 Native/C function Native/C function
Line 1736: Line 1877:
  
 ---- ----
-''function update_get_peer_is_admin''+===update_get_peer_is_admin===
  
 Native/C function Native/C function
Line 1750: Line 1891:
  
 ---- ----
-''function update_get_peer_is_voice_muted''+===update_get_peer_is_voice_muted===
  
 Native/C function Native/C function
Line 1763: Line 1904:
  
 ---- ----
-''function update_get_peer_is_voice_transmit''+===update_get_peer_is_voice_transmit===
  
 Native/C function Native/C function
Line 1776: Line 1917:
  
 ---- ----
-''function update_get_peer_name''+===update_get_peer_name===
  
 Native/C function Native/C function
Line 1790: Line 1931:
  
 ---- ----
-''function update_get_peer_team''+===update_get_peer_team===
  
 Native/C function Native/C function
Line 1803: Line 1944:
  
 ---- ----
-''function update_get_rebinding_gamepad''+===update_get_rebinding_gamepad===
  
 Native/C function Native/C function
Line 1818: Line 1959:
  
 ---- ----
-''function update_get_rebinding_keyboard''+===update_get_rebinding_keyboard===
  
 Native/C function Native/C function
Line 1833: Line 1974:
  
 ---- ----
-''function update_get_render_buffer_age''+===update_get_render_buffer_age===
  
 Native/C function Native/C function
Line 1846: Line 1987:
  
 ---- ----
-''function update_get_resource_inventory_category_count''+===update_get_resource_inventory_category_count===
  
 Native/C function Native/C function
Line 1859: Line 2000:
  
 ---- ----
-''function update_get_resource_inventory_category_data''+===update_get_resource_inventory_category_data===
  
 Native/C function Native/C function
Line 1872: Line 2013:
  
 ---- ----
-''function update_get_resource_inventory_item_count''+===update_get_resource_inventory_item_count===
  
 Native/C function Native/C function
Line 1886: Line 2027:
  
 ---- ----
-''function update_get_resource_inventory_item_data''+===update_get_resource_inventory_item_data===
  
 Native/C function Native/C function
Line 1899: Line 2040:
  
 ---- ----
-''function update_get_resource_item_for_definition''+===update_get_resource_item_for_definition===
  
 Native/C function Native/C function
Line 1912: Line 2053:
  
 ---- ----
-''function update_get_resource_item_hidden''+===update_get_resource_item_hidden===
  
 Native/C function Native/C function
Line 1926: Line 2067:
  
 ---- ----
-''function update_get_resource_item_hidden_facility_production''+===update_get_resource_item_hidden_facility_production===
  
 Native/C function Native/C function
Line 1939: Line 2080:
  
 ---- ----
-''function update_get_respawn_carrier_id''+===update_get_respawn_carrier_id===
  
 Native/C function Native/C function
Line 1952: Line 2093:
  
 ---- ----
-''function update_get_save_slots''+===update_get_save_slots===
  
 Native/C function Native/C function
Line 1966: Line 2107:
  
 ---- ----
-''function update_get_screen_input''+===update_get_screen_input===
  
 Native/C function Native/C function
Line 1979: Line 2120:
  
 ---- ----
-''function update_get_screen_state_active''+===update_get_screen_state_active===
  
 Native/C function Native/C function
Line 1994: Line 2135:
  
 ---- ----
-''function update_get_screen_team_id''+===update_get_screen_team_id===
  
 Native/C function Native/C function
Line 2011: Line 2152:
  
 ---- ----
-''function update_get_screen_vehicle''+===update_get_screen_vehicle===
  
 Native/C function Native/C function
Line 2044: Line 2185:
  
 ---- ----
-''function update_get_server_list''+===update_get_server_list===
  
 Native/C function Native/C function
Line 2057: Line 2198:
  
 ---- ----
-''function update_get_server_meta''+===update_get_server_meta===
  
 Native/C function Native/C function
Line 2070: Line 2211:
  
 ---- ----
-''function update_get_server_name''+===update_get_server_name===
  
 Native/C function Native/C function
Line 2083: Line 2224:
  
 ---- ----
-''function update_get_skin_color_options''+===update_get_skin_color_options===
  
 Native/C function Native/C function
Line 2096: Line 2237:
  
 ---- ----
-''function update_get_team''+===update_get_team===
  
 Native/C function Native/C function
Line 2114: Line 2255:
  
 ---- ----
-''function update_get_team_color''+===update_get_team_color===
  
 Native/C function Native/C function
Line 2132: Line 2273:
  
 ---- ----
-''function update_get_team_transmission_count''+===update_get_team_transmission_count===
  
 Native/C function Native/C function
Line 2145: Line 2286:
  
 ---- ----
-''function update_get_team_transmission_name''+===update_get_team_transmission_name===
  
 Native/C function Native/C function
Line 2158: Line 2299:
  
 ---- ----
-''function update_get_tile_by_id''+===update_get_tile_by_id===
  
 Native/C function Native/C function
Line 2175: Line 2316:
  
 ---- ----
-''function update_get_tile_by_index''+===update_get_tile_by_index===
  
 Native/C function Native/C function
Line 2193: Line 2334:
  
 ---- ----
-''function update_get_tile_count''+===update_get_tile_count===
  
 Native/C function Native/C function
Line 2211: Line 2352:
  
 ---- ----
-''function update_get_time_ms''+===update_get_time_ms===
  
 Native/C function Native/C function
Line 2224: Line 2365:
  
 ---- ----
-''function update_get_transmission_playback_progress''+===update_get_transmission_playback_progress===
  
 Native/C function Native/C function
Line 2237: Line 2378:
  
 ---- ----
-''function update_get_transmission_playing_index''+===update_get_transmission_playing_index===
  
 Native/C function Native/C function
Line 2250: Line 2391:
  
 ---- ----
-''function update_get_ui_scale''+===update_get_ui_scale===
  
 Native/C function Native/C function
Line 2263: Line 2404:
  
 ---- ----
-''function update_get_vehicle_by_id''+===update_get_vehicle_by_id===
  
 Native/C function Native/C function
Line 2282: Line 2423:
  
 ---- ----
-''function update_get_version''+===update_get_version===
  
 Native/C function Native/C function
Line 2295: Line 2436:
  
 ---- ----
-''function update_get_weapon_line_by_index''+===update_get_weapon_line_by_index===
  
 Native/C function Native/C function
Line 2308: Line 2449:
  
 ---- ----
-''function update_get_weapon_line_count''+===update_get_weapon_line_count===
  
 Native/C function Native/C function
Line 2321: Line 2462:
  
 ---- ----
-''function update_get_weather_fog_factor''+===update_get_weather_fog_factor===
  
 Native/C function Native/C function
Line 2334: Line 2475:
  
 ---- ----
-''function update_get_weather_lightning_factor''+===update_get_weather_lightning_factor===
  
 Native/C function Native/C function
Line 2347: Line 2488:
  
 ---- ----
-''function update_get_weather_precipitation_factor''+===update_get_weather_precipitation_factor===
  
 Native/C function Native/C function
Line 2360: Line 2501:
  
 ---- ----
-''function update_get_weather_wind_velocity''+===update_get_weather_wind_velocity===
  
 Native/C function Native/C function
Line 2373: Line 2514:
  
 ---- ----
-''function update_get_workshop_published_mods''+===update_get_workshop_published_mods===
  
 Native/C function Native/C function
Line 2386: Line 2527:
  
 ---- ----
-''function update_gun_funnel''+===update_gun_funnel===
  
 Lua defined function in vehicle_hud.lua Lua defined function in vehicle_hud.lua
Line 2399: Line 2540:
  
 ---- ----
-''function update_interaction_ui''+===update_interaction_ui===
  
 Lua defined function in pause_menu.lua Lua defined function in pause_menu.lua
Line 2419: Line 2560:
  
 ---- ----
-''function update_launch_carrier''+===update_launch_carrier===
  
 Native/C function Native/C function
Line 2432: Line 2573:
  
 ---- ----
-''function update_map_cursor_state''+===update_map_cursor_state===
  
 Lua defined function in screen_inventory.lua Lua defined function in screen_inventory.lua
Line 2445: Line 2586:
  
 ---- ----
-''function update_map_dismiss_notification''+===update_map_dismiss_notification===
  
 Native/C function Native/C function
Line 2458: Line 2599:
  
 ---- ----
-''function update_map_hovered''+===update_map_hovered===
  
 Lua defined function in screen_inventory.lua Lua defined function in screen_inventory.lua
Line 2471: Line 2612:
  
 ---- ----
-''function update_play_sound''+===update_play_sound===
  
 Native/C function Native/C function
Line 2490: Line 2631:
  
 ---- ----
-''function update_play_transmission''+===update_play_transmission===
  
 Native/C function Native/C function
Line 2503: Line 2644:
  
 ---- ----
-''function update_print_metatable''+===update_print_metatable===
  
 Native/C function Native/C function
Line 2516: Line 2657:
  
 ---- ----
-''function update_print_regions''+===update_print_regions===
  
 Native/C function Native/C function
Line 2529: Line 2670:
  
 ---- ----
-''function update_refresh_workshop_published_mods''+===update_refresh_workshop_published_mods===
  
 Native/C function Native/C function
Line 2542: Line 2683:
  
 ---- ----
-''function update_repeat''+===update_repeat===
  
 Lua defined function in library_ui.lua Lua defined function in library_ui.lua
Line 2555: Line 2696:
  
 ---- ----
-''function update_screen_overrides''+===update_screen_overrides===
  
 Lua defined function in library_util.lua Lua defined function in library_util.lua
Line 2597: Line 2738:
  
 ---- ----
-''function update_self_destruct_override''+===update_self_destruct_override===
  
 Lua defined function in library_util.lua Lua defined function in library_util.lua
Line 2611: Line 2752:
  
 ---- ----
-''function update_set_connect_address''+===update_set_connect_address===
  
 Native/C function Native/C function
Line 2624: Line 2765:
  
 ---- ----
-''function update_set_go_code''+===update_set_go_code===
  
 Native/C function Native/C function
Line 2637: Line 2778:
  
 ---- ----
-''function update_set_host_max_players''+===update_set_host_max_players===
  
 Native/C function Native/C function
Line 2650: Line 2791:
  
 ---- ----
-''function update_set_host_password''+===update_set_host_password===
  
 Native/C function Native/C function
Line 2663: Line 2804:
  
 ---- ----
-''function update_set_is_block_input''+===update_set_is_block_input===
  
 Native/C function Native/C function
Line 2676: Line 2817:
  
 ---- ----
-''function update_set_is_mod_enabled''+===update_set_is_mod_enabled===
  
 Native/C function Native/C function
Line 2689: Line 2830:
  
 ---- ----
-''function update_set_is_pause_simulation''+===update_set_is_pause_simulation===
  
 Native/C function Native/C function
Line 2702: Line 2843:
  
 ---- ----
-''function update_set_is_text_input_mode''+===update_set_is_text_input_mode===
  
 Native/C function Native/C function
Line 2716: Line 2857:
  
 ---- ----
-''function update_set_is_visible''+===update_set_is_visible===
  
 Native/C function Native/C function
Line 2729: Line 2870:
  
 ---- ----
-''function update_set_join_password''+===update_set_join_password===
  
 Native/C function Native/C function
Line 2742: Line 2883:
  
 ---- ----
-''function update_set_new_game_base_difficulty''+===update_set_new_game_base_difficulty===
  
 Native/C function Native/C function
Line 2755: Line 2896:
  
 ---- ----
-''function update_set_new_game_blueprints''+===update_set_new_game_blueprints===
  
 Native/C function Native/C function
Line 2768: Line 2909:
  
 ---- ----
-''function update_set_new_game_carrier_count_per_team''+===update_set_new_game_carrier_count_per_team===
  
 Native/C function Native/C function
Line 2781: Line 2922:
  
 ---- ----
-''function update_set_new_game_is_tutorial''+===update_set_new_game_is_tutorial===
  
 Native/C function Native/C function
Line 2794: Line 2935:
  
 ---- ----
-''function update_set_new_game_island_count''+===update_set_new_game_island_count===
  
 Native/C function Native/C function
Line 2807: Line 2948:
  
 ---- ----
-''function update_set_new_game_island_count_per_team''+===update_set_new_game_island_count_per_team===
  
 Native/C function Native/C function
Line 2820: Line 2961:
  
 ---- ----
-''function update_set_new_game_loadout_type''+===update_set_new_game_loadout_type===
  
 Native/C function Native/C function
Line 2833: Line 2974:
  
 ---- ----
-''function update_set_new_game_team_count_ai''+===update_set_new_game_team_count_ai===
  
 Native/C function Native/C function
Line 2846: Line 2987:
  
 ---- ----
-''function update_set_new_game_team_count_human''+===update_set_new_game_team_count_human===
  
 Native/C function Native/C function
Line 2859: Line 3000:
  
 ---- ----
-''function update_set_observed_vehicle''+===update_set_observed_vehicle===
  
 Native/C function Native/C function
Line 2872: Line 3013:
  
 ---- ----
-''function update_set_screen_background_clip''+===update_set_screen_background_clip===
  
 Native/C function Native/C function
Line 2885: Line 3026:
  
 ---- ----
-''function update_set_screen_background_color''+===update_set_screen_background_color===
  
 Native/C function Native/C function
Line 2898: Line 3039:
  
 ---- ----
-''function update_set_screen_background_is_render_islands''+===update_set_screen_background_is_render_islands===
  
 Native/C function Native/C function
Line 2916: Line 3057:
  
 ---- ----
-''function update_set_screen_background_tile_color_custom''+===update_set_screen_background_tile_color_custom===
  
 Native/C function Native/C function
Line 2929: Line 3070:
  
 ---- ----
-''function update_set_screen_background_type''+===update_set_screen_background_type===
  
 Native/C function Native/C function
Line 2950: Line 3091:
  
 ---- ----
-''function update_set_screen_camera_attach_vehicle''+===update_set_screen_camera_attach_vehicle===
  
 Native/C function Native/C function
Line 2964: Line 3105:
  
 ---- ----
-''function update_set_screen_camera_cull_distance''+===update_set_screen_camera_cull_distance===
  
 Native/C function Native/C function
Line 2977: Line 3118:
  
 ---- ----
-''function update_set_screen_camera_is_render_ocean''+===update_set_screen_camera_is_render_ocean===
  
 Native/C function Native/C function
Line 2990: Line 3131:
  
 ---- ----
-''function update_set_screen_camera_lod_level''+===update_set_screen_camera_lod_level===
  
 Native/C function Native/C function
Line 3003: Line 3144:
  
 ---- ----
-''function update_set_screen_camera_pos_orientation''+===update_set_screen_camera_pos_orientation===
  
 Native/C function Native/C function
Line 3016: Line 3157:
  
 ---- ----
-''function update_set_screen_camera_render_attached_vehicle''+===update_set_screen_camera_render_attached_vehicle===
  
 Native/C function Native/C function
Line 3029: Line 3170:
  
 ---- ----
-''function update_set_screen_map_position_scale''+===update_set_screen_map_position_scale===
  
 Native/C function Native/C function
Line 3047: Line 3188:
  
 ---- ----
-''function update_set_screen_state_exit''+===update_set_screen_state_exit===
  
 Native/C function Native/C function
Line 3090: Line 3231:
  
 ---- ----
-''function update_set_screen_vehicle_control_id''+===update_set_screen_vehicle_control_id===
  
 Native/C function Native/C function
Line 3104: Line 3245:
  
 ---- ----
-''function update_set_server_name''+===update_set_server_name===
  
 Native/C function Native/C function
Line 3117: Line 3258:
  
 ---- ----
-''function update_stop_transmission''+===update_stop_transmission===
  
 Native/C function Native/C function
Line 3130: Line 3271:
  
 ---- ----
-''function update_string_from_epoch''+===update_string_from_epoch===
  
 Native/C function Native/C function
Line 3144: Line 3285:
  
 ---- ----
-''function update_ui_add_triangle''+===update_ui_add_triangle===
  
 Native/C function Native/C function
Line 3163: Line 3304:
  
 ---- ----
-''function update_ui_begin_triangles''+===update_ui_begin_triangles===
  
 Native/C function Native/C function
Line 3182: Line 3323:
  
 ---- ----
-''function update_ui_circle''+===update_ui_circle===
  
 Lua defined function in library_ui.lua Lua defined function in library_ui.lua
Line 3197: Line 3338:
  
 ---- ----
-''function update_ui_end_triangles''+===update_ui_end_triangles===
  
 Native/C function Native/C function
Line 3216: Line 3357:
  
 ---- ----
-''function update_ui_event''+===update_ui_event===
  
 Lua defined function in library_ui.lua Lua defined function in library_ui.lua
Line 3234: Line 3375:
  
 ---- ----
-''function update_ui_format_peer_display_name''+===update_ui_format_peer_display_name===
  
 Native/C function Native/C function
Line 3247: Line 3388:
  
 ---- ----
-''function update_ui_get_image_size''+===update_ui_get_image_size===
  
 Native/C function Native/C function
Line 3263: Line 3404:
  
 ---- ----
-''function update_ui_get_offset''+===update_ui_get_offset===
  
 Native/C function Native/C function
Line 3276: Line 3417:
  
 ---- ----
-''function update_ui_get_text_size''+===update_ui_get_text_size===
  
 Native/C function Native/C function
Line 3299: Line 3440:
  
 ---- ----
-''function update_ui_image''+===update_ui_image===
  
 Native/C function Native/C function
Line 3341: Line 3482:
  
 ---- ----
-''function update_ui_image_power''+===update_ui_image_power===
  
 Native/C function Native/C function
Line 3354: Line 3495:
  
 ---- ----
-''function update_ui_image_rot''+===update_ui_image_rot===
  
 Native/C function Native/C function
Line 3371: Line 3512:
  
 ---- ----
-''function update_ui_line''+===update_ui_line===
  
 Native/C function Native/C function
Line 3399: Line 3540:
  
 ---- ----
-''function update_ui_pop_alpha''+===update_ui_pop_alpha===
  
 Native/C function Native/C function
Line 3413: Line 3554:
  
 ---- ----
-''function update_ui_pop_clip''+===update_ui_pop_clip===
  
 Native/C function Native/C function
Line 3433: Line 3574:
  
 ---- ----
-''function update_ui_pop_offset''+===update_ui_pop_offset===
  
 Native/C function Native/C function
Line 3470: Line 3611:
  
 ---- ----
-''function update_ui_pop_scale''+===update_ui_pop_scale===
  
 Native/C function Native/C function
Line 3483: Line 3624:
  
 ---- ----
-''function update_ui_push_alpha''+===update_ui_push_alpha===
  
 Native/C function Native/C function
Line 3497: Line 3638:
  
 ---- ----
-''function update_ui_push_clip''+===update_ui_push_clip===
  
 Native/C function Native/C function
Line 3517: Line 3658:
  
 ---- ----
-''function update_ui_push_offset''+===update_ui_push_offset===
  
 Native/C function Native/C function
Line 3554: Line 3695:
  
 ---- ----
-''function update_ui_push_scale''+===update_ui_push_scale===
  
 Native/C function Native/C function
Line 3567: Line 3708:
  
 ---- ----
-''function update_ui_rectangle''+===update_ui_rectangle===
  
 Native/C function Native/C function
Line 3607: Line 3748:
  
 ---- ----
-''function update_ui_rectangle_outline''+===update_ui_rectangle_outline===
  
 Lua defined function in library_ui.lua Lua defined function in library_ui.lua
Line 3639: Line 3780:
  
 ---- ----
-''function update_ui_set_back_color''+===update_ui_set_back_color===
  
 Native/C function Native/C function
Line 3653: Line 3794:
  
 ---- ----
-''function update_ui_set_text_color''+===update_ui_set_text_color===
  
 Native/C function Native/C function
Line 3669: Line 3810:
  
 ---- ----
-''function update_ui_text''+===update_ui_text===
  
 Native/C function Native/C function
Line 3712: Line 3853:
  
 ---- ----
-''function update_ui_text_scale''+===update_ui_text_scale===
  
 Native/C function Native/C function
Line 3727: Line 3868:
  
 ---- ----
-''function update_update_workshop_mod''+===update_update_workshop_mod===
  
 Native/C function Native/C function
Line 3740: Line 3881:
  
 ---- ----
-''function update_world_to_screen''+===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

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki