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 [2025/05/05 07:05] (current) – [update] 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 88:
  
 ---- ----
-''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 114:
  
 ---- ----
-''function begin_load''+===begin_load===
  
 Lua defined function in library_util.lua Lua defined function in library_util.lua
Line 86: Line 160:
  
 ---- ----
-''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 180:
  
 ---- ----
-''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 210:
  
 ---- ----
-''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 242:
  
 ---- ----
-''function update_animations''+===update_animations===
  
 Lua defined function in vehicle_hud.lua Lua defined function in vehicle_hud.lua
Line 177: Line 255:
  
 ---- ----
-''function update_boot_override''+===update_boot_override===
  
 Lua defined function in library_util.lua Lua defined function in library_util.lua
Line 190: Line 268:
  
 ---- ----
-''function update_camera_local_rotate_inv''+===update_camera_local_rotate_inv===
  
 Native/C function Native/C function
Line 203: Line 281:
  
 ---- ----
-''function update_chat''+===update_chat===
  
 Lua defined function in interactions.lua Lua defined function in interactions.lua
Line 216: Line 294:
  
 ---- ----
-''function update_create_workshop_mod''+===update_create_workshop_mod===
  
 Native/C function Native/C function
Line 229: Line 307:
  
 ---- ----
-''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 320:
  
 ---- ----
-''function update_damage_zones''+===update_damage_zones===
  
 Lua defined function in screen_damage.lua Lua defined function in screen_damage.lua
Line 255: Line 333:
  
 ---- ----
-''function update_exit_pause_menu''+===update_exit_pause_menu===
  
 Native/C function Native/C function
Line 268: Line 346:
  
 ---- ----
-''function update_get_active_input_type''+===update_get_active_input_type===
  
 Native/C function Native/C function
Line 296: Line 374:
  
 ---- ----
-''function update_get_angle_2d''+===update_get_angle_2d===
  
 Native/C function Native/C function
Line 309: Line 387:
  
 ---- ----
-''function update_get_application_state''+===update_get_application_state===
  
 Native/C function Native/C function
Line 322: Line 400:
  
 ---- ----
-''function update_get_attachment_ammo_item_type''+===update_get_attachment_ammo_item_type===
  
 Native/C function Native/C function
Line 335: Line 413:
  
 ---- ----
-''function update_get_attachment_option''+===update_get_attachment_option===
  
 Native/C function Native/C function
Line 348: Line 426:
  
 ---- ----
-''function update_get_attachment_option_count''+===update_get_attachment_option_count===
  
 Native/C function Native/C function
Line 361: Line 439:
  
 ---- ----
-''function update_get_attachment_option_hidden''+===update_get_attachment_option_hidden===
  
 Native/C function Native/C function
Line 374: Line 452:
  
 ---- ----
-''function update_get_camera_forward''+===update_get_camera_forward===
  
 Native/C function Native/C function
Line 387: Line 465:
  
 ---- ----
-''function update_get_camera_fov''+===update_get_camera_fov===
  
 Native/C function Native/C function
Line 400: Line 478:
  
 ---- ----
-''function update_get_camera_heading''+===update_get_camera_heading===
  
 Native/C function Native/C function
Line 413: Line 491:
  
 ---- ----
-''function update_get_camera_position''+===update_get_camera_position===
  
 Native/C function Native/C function
Line 426: Line 504:
  
 ---- ----
-''function update_get_camera_side''+===update_get_camera_side===
  
 Native/C function Native/C function
Line 439: Line 517:
  
 ---- ----
-''function update_get_chat_messages''+===update_get_chat_messages===
  
 Native/C function Native/C function
Line 452: Line 530:
  
 ---- ----
-''function update_get_connect_address''+===update_get_connect_address===
  
 Native/C function Native/C function
Line 465: Line 543:
  
 ---- ----
-''function update_get_currency_log''+===update_get_currency_log===
  
 Native/C function Native/C function
Line 478: Line 556:
  
 ---- ----
-''function update_get_currency_log_count''+===update_get_currency_log_count===
  
 Native/C function Native/C function
Line 491: Line 569:
  
 ---- ----
-''function update_get_definition_vehicle_stats''+===update_get_definition_vehicle_stats===
  
 Native/C function Native/C function
Line 505: Line 583:
  
 ---- ----
-''function update_get_delivery_log''+===update_get_delivery_log===
  
 Native/C function Native/C function
Line 518: Line 596:
  
 ---- ----
-''function update_get_delivery_log_count''+===update_get_delivery_log_count===
  
 Native/C function Native/C function
Line 531: Line 609:
  
 ---- ----
-''function update_get_friend_games''+===update_get_friend_games===
  
 Native/C function Native/C function
Line 544: Line 622:
  
 ---- ----
-''function update_get_game_input_category''+===update_get_game_input_category===
  
 Native/C function Native/C function
Line 557: Line 635:
  
 ---- ----
-''function update_get_game_input_count''+===update_get_game_input_count===
  
 Native/C function Native/C function
Line 570: Line 648:
  
 ---- ----
-''function update_get_game_input_name''+===update_get_game_input_name===
  
 Native/C function Native/C function
Line 583: Line 661:
  
 ---- ----
-''function update_get_game_settings''+===update_get_game_settings===
  
 Native/C function Native/C function
Line 599: Line 677:
  
 ---- ----
-''function update_get_gfx_resolution_modes''+===update_get_gfx_resolution_modes===
  
 Native/C function Native/C function
Line 612: Line 690:
  
 ---- ----
-''function update_get_hair_color_options''+===update_get_hair_color_options===
  
 Native/C function Native/C function
Line 625: Line 703:
  
 ---- ----
-''function update_get_host_connect_token''+===update_get_host_connect_token===
  
 Native/C function Native/C function
Line 638: Line 716:
  
 ---- ----
-''function update_get_host_max_players''+===update_get_host_max_players===
  
 Native/C function Native/C function
Line 651: Line 729:
  
 ---- ----
-''function update_get_host_password''+===update_get_host_password===
  
 Native/C function Native/C function
Line 664: Line 742:
  
 ---- ----
-''function update_get_input_binding_gamepad_axis''+===update_get_input_binding_gamepad_axis===
  
 Native/C function Native/C function
Line 678: Line 756:
  
 ---- ----
-''function update_get_input_binding_gamepad_button''+===update_get_input_binding_gamepad_button===
  
 Native/C function Native/C function
Line 692: Line 770:
  
 ---- ----
-''function update_get_input_binding_is_axis_inverted''+===update_get_input_binding_is_axis_inverted===
  
 Native/C function Native/C function
Line 705: Line 783:
  
 ---- ----
-''function update_get_input_binding_joystick_axis''+===update_get_input_binding_joystick_axis===
  
 Native/C function Native/C function
Line 719: Line 797:
  
 ---- ----
-''function update_get_input_binding_joystick_button''+===update_get_input_binding_joystick_button===
  
 Native/C function Native/C function
Line 733: Line 811:
  
 ---- ----
-''function update_get_input_binding_joystick_connected''+===update_get_input_binding_joystick_connected===
  
 Native/C function Native/C function
Line 746: Line 824:
  
 ---- ----
-''function update_get_input_binding_joystick_guid''+===update_get_input_binding_joystick_guid===
  
 Native/C function Native/C function
Line 759: Line 837:
  
 ---- ----
-''function update_get_input_binding_joystick_name''+===update_get_input_binding_joystick_name===
  
 Native/C function Native/C function
Line 772: Line 850:
  
 ---- ----
-''function update_get_input_binding_keyboard_key''+===update_get_input_binding_keyboard_key===
  
 Native/C function Native/C function
Line 786: Line 864:
  
 ---- ----
-''function update_get_input_binding_keyboard_pointer''+===update_get_input_binding_keyboard_pointer===
  
 Native/C function Native/C function
Line 800: Line 878:
  
 ---- ----
-''function update_get_input_category_name''+===update_get_input_category_name===
  
 Native/C function Native/C function
Line 813: Line 891:
  
 ---- ----
-''function update_get_input_gamepad_axis_value''+===update_get_input_gamepad_axis_value===
  
 Native/C function Native/C function
Line 826: Line 904:
  
 ---- ----
-''function update_get_input_joystick_axis_count''+===update_get_input_joystick_axis_count===
  
 Native/C function Native/C function
Line 839: Line 917:
  
 ---- ----
-''function update_get_input_joystick_axis_value''+===update_get_input_joystick_axis_value===
  
 Native/C function Native/C function
Line 852: Line 930:
  
 ---- ----
-''function update_get_input_joystick_connected''+===update_get_input_joystick_connected===
  
 Native/C function Native/C function
Line 865: Line 943:
  
 ---- ----
-''function update_get_input_joystick_guid''+===update_get_input_joystick_guid===
  
 Native/C function Native/C function
Line 878: Line 956:
  
 ---- ----
-''function update_get_input_joystick_name''+===update_get_input_joystick_name===
  
 Native/C function Native/C function
Line 891: Line 969:
  
 ---- ----
-''function update_get_is_chat_box_available''+===update_get_is_chat_box_available===
  
 Native/C function Native/C function
Line 904: Line 982:
  
 ---- ----
-''function update_get_is_focus_local''+===update_get_is_focus_local===
  
 Native/C function Native/C function
Line 929: Line 1007:
  
 ---- ----
-''function update_get_is_hosting_game''+===update_get_is_hosting_game===
  
 Native/C function Native/C function
Line 942: Line 1020:
  
 ---- ----
-''function update_get_is_input_rebindable_gamepad''+===update_get_is_input_rebindable_gamepad===
  
 Native/C function Native/C function
Line 955: Line 1033:
  
 ---- ----
-''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 1046:
  
 ---- ----
-''function update_get_is_input_rebindable_keyboard''+===update_get_is_input_rebindable_keyboard===
  
 Native/C function Native/C function
Line 981: Line 1059:
  
 ---- ----
-''function update_get_is_loading''+===update_get_is_loading===
  
 Native/C function Native/C function
Line 994: Line 1072:
  
 ---- ----
-''function update_get_is_multiplayer''+===update_get_is_multiplayer===
  
 Native/C function Native/C function
Line 1009: Line 1087:
  
 ---- ----
-''function update_get_is_notification_holomap_set''+===update_get_is_notification_holomap_set===
  
 Native/C function Native/C function
Line 1022: Line 1100:
  
 ---- ----
-''function update_get_is_respawn_menu_option_available''+===update_get_is_respawn_menu_option_available===
  
 Native/C function Native/C function
Line 1035: Line 1113:
  
 ---- ----
-''function update_get_is_save_game_available''+===update_get_is_save_game_available===
  
 Native/C function Native/C function
Line 1048: Line 1126:
  
 ---- ----
-''function update_get_is_show_controls''+===update_get_is_show_controls===
  
 Native/C function Native/C function
Line 1061: Line 1139:
  
 ---- ----
-''function update_get_is_show_subtitles''+===update_get_is_show_subtitles===
  
 Native/C function Native/C function
Line 1074: Line 1152:
  
 ---- ----
-''function update_get_is_show_tooltips''+===update_get_is_show_tooltips===
  
 Native/C function Native/C function
Line 1087: Line 1165:
  
 ---- ----
-''function update_get_is_show_voice_chat_others''+===update_get_is_show_voice_chat_others===
  
 Native/C function Native/C function
Line 1100: Line 1178:
  
 ---- ----
-''function update_get_is_show_voice_chat_self''+===update_get_is_show_voice_chat_self===
  
 Native/C function Native/C function
Line 1113: Line 1191:
  
 ---- ----
-''function update_get_is_show_vr_multiplayer_warning''+===update_get_is_show_vr_multiplayer_warning===
  
 Native/C function Native/C function
Line 1126: Line 1204:
  
 ---- ----
-''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 1223:
  
 ---- ----
-''function update_get_join_password''+===update_get_join_password===
  
 Native/C function Native/C function
Line 1156: Line 1236:
  
 ---- ----
-''function update_get_key_name''+===update_get_key_name===
  
 Native/C function Native/C function
Line 1170: Line 1250:
  
 ---- ----
-''function update_get_keyboard_back_opens_pause''+===update_get_keyboard_back_opens_pause===
  
 Native/C function Native/C function
Line 1183: Line 1263:
  
 ---- ----
-''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 1312:
  
 ---- ----
-''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 1327:
  
 ---- ----
-''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 1343:
  
 ---- ----
-''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 1368:
  
 ---- ----
-''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 1392:
  
 ---- ----
-''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 1407:
  
 ---- ----
-''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 not see unit waypoints where as screens can fully get/set waypoint data.
 +
 +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 1316: Line 1447:
  
 ---- ----
-''function update_get_map_vehicle_by_index''+===update_get_map_vehicle_by_index===
  
 Native/C function Native/C function
Line 1336: Line 1467:
  
 ---- ----
-''function update_get_map_vehicle_count''+===update_get_map_vehicle_count===
  
 Native/C function Native/C function
Line 1356: Line 1487:
  
 ---- ----
-''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 1501:
  
 ---- ----
-''function update_get_message_box_type''+===update_get_message_box_type===
  
 Native/C function Native/C function
Line 1383: Line 1514:
  
 ---- ----
-''function update_get_missile_by_id''+===update_get_missile_by_id===
  
 Native/C function Native/C function
Line 1396: Line 1527:
  
 ---- ----
-''function update_get_missile_by_index''+===update_get_missile_by_index===
  
 Native/C function Native/C function
Line 1410: Line 1541:
  
 ---- ----
-''function update_get_missile_count''+===update_get_missile_count===
  
 Native/C function Native/C function
Line 1424: Line 1555:
  
 ---- ----
-''function update_get_mod_details''+===update_get_mod_details===
  
 Native/C function Native/C function
Line 1437: Line 1568:
  
 ---- ----
-''function update_get_mod_incompatible_active_mods''+===update_get_mod_incompatible_active_mods===
  
 Native/C function Native/C function
Line 1450: Line 1581:
  
 ---- ----
-''function update_get_mod_workshop_upload_status''+===update_get_mod_workshop_upload_status===
  
 Native/C function Native/C function
Line 1463: Line 1594:
  
 ---- ----
-''function update_get_mouse_flight_axis''+===update_get_mouse_flight_axis===
  
 Native/C function Native/C function
Line 1476: Line 1607:
  
 ---- ----
-''function update_get_mouse_flight_mode''+===update_get_mouse_flight_mode===
  
 Native/C function Native/C function
Line 1489: Line 1620:
  
 ---- ----
-''function update_get_network_time_since_recv''+===update_get_network_time_since_recv===
  
 Native/C function Native/C function
Line 1502: Line 1633:
  
 ---- ----
-''function update_get_network_timeout''+===update_get_network_timeout===
  
 Native/C function Native/C function
Line 1515: Line 1646:
  
 ---- ----
-''function update_get_new_game_base_difficulty''+===update_get_new_game_base_difficulty===
  
 Native/C function Native/C function
Line 1528: Line 1659:
  
 ---- ----
-''function update_get_new_game_blueprints''+===update_get_new_game_blueprints===
  
 Native/C function Native/C function
Line 1541: Line 1672:
  
 ---- ----
-''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 1685:
  
 ---- ----
-''function update_get_new_game_is_tutorial''+===update_get_new_game_is_tutorial===
  
 Native/C function Native/C function
Line 1567: Line 1698:
  
 ---- ----
-''function update_get_new_game_island_count''+===update_get_new_game_island_count===
  
 Native/C function Native/C function
Line 1580: Line 1711:
  
 ---- ----
-''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 1724:
  
 ---- ----
-''function update_get_new_game_loadout_type''+===update_get_new_game_loadout_type===
  
 Native/C function Native/C function
Line 1606: Line 1737:
  
 ---- ----
-''function update_get_new_game_team_count_ai''+===update_get_new_game_team_count_ai===
  
 Native/C function Native/C function
Line 1619: Line 1750:
  
 ---- ----
-''function update_get_new_game_team_count_human''+===update_get_new_game_team_count_human===
  
 Native/C function Native/C function
Line 1632: Line 1763:
  
 ---- ----
-''function update_get_notification_holomap''+===update_get_notification_holomap===
  
 Native/C function Native/C function
Line 1645: Line 1776:
  
 ---- ----
-''function update_get_notification_log''+===update_get_notification_log===
  
 Native/C function Native/C function
Line 1658: Line 1789:
  
 ---- ----
-''function update_get_notification_log_count''+===update_get_notification_log_count===
  
 Native/C function Native/C function
Line 1671: Line 1802:
  
 ---- ----
-''function update_get_ocean_current_velocity''+===update_get_ocean_current_velocity===
  
 Native/C function Native/C function
Line 1684: Line 1815:
  
 ---- ----
-''function update_get_ocean_depth_factor''+===update_get_ocean_depth_factor===
  
 Native/C function Native/C function
Line 1697: Line 1828:
  
 ---- ----
-''function update_get_peer_count''+===update_get_peer_count===
  
 Native/C function Native/C function
Line 1710: Line 1841:
  
 ---- ----
-''function update_get_peer_id''+===update_get_peer_id===
  
 Native/C function Native/C function
Line 1723: Line 1854:
  
 ---- ----
-''function update_get_peer_index_by_id''+===update_get_peer_index_by_id===
  
 Native/C function Native/C function
Line 1736: Line 1867:
  
 ---- ----
-''function update_get_peer_is_admin''+===update_get_peer_is_admin===
  
 Native/C function Native/C function
Line 1750: Line 1881:
  
 ---- ----
-''function update_get_peer_is_voice_muted''+===update_get_peer_is_voice_muted===
  
 Native/C function Native/C function
Line 1763: Line 1894:
  
 ---- ----
-''function update_get_peer_is_voice_transmit''+===update_get_peer_is_voice_transmit===
  
 Native/C function Native/C function
Line 1776: Line 1907:
  
 ---- ----
-''function update_get_peer_name''+===update_get_peer_name===
  
 Native/C function Native/C function
Line 1790: Line 1921:
  
 ---- ----
-''function update_get_peer_team''+===update_get_peer_team===
  
 Native/C function Native/C function
Line 1803: Line 1934:
  
 ---- ----
-''function update_get_rebinding_gamepad''+===update_get_rebinding_gamepad===
  
 Native/C function Native/C function
Line 1818: Line 1949:
  
 ---- ----
-''function update_get_rebinding_keyboard''+===update_get_rebinding_keyboard===
  
 Native/C function Native/C function
Line 1833: Line 1964:
  
 ---- ----
-''function update_get_render_buffer_age''+===update_get_render_buffer_age===
  
 Native/C function Native/C function
Line 1846: Line 1977:
  
 ---- ----
-''function update_get_resource_inventory_category_count''+===update_get_resource_inventory_category_count===
  
 Native/C function Native/C function
Line 1859: Line 1990:
  
 ---- ----
-''function update_get_resource_inventory_category_data''+===update_get_resource_inventory_category_data===
  
 Native/C function Native/C function
Line 1872: Line 2003:
  
 ---- ----
-''function update_get_resource_inventory_item_count''+===update_get_resource_inventory_item_count===
  
 Native/C function Native/C function
Line 1886: Line 2017:
  
 ---- ----
-''function update_get_resource_inventory_item_data''+===update_get_resource_inventory_item_data===
  
 Native/C function Native/C function
Line 1899: Line 2030:
  
 ---- ----
-''function update_get_resource_item_for_definition''+===update_get_resource_item_for_definition===
  
 Native/C function Native/C function
Line 1912: Line 2043:
  
 ---- ----
-''function update_get_resource_item_hidden''+===update_get_resource_item_hidden===
  
 Native/C function Native/C function
Line 1926: Line 2057:
  
 ---- ----
-''function update_get_resource_item_hidden_facility_production''+===update_get_resource_item_hidden_facility_production===
  
 Native/C function Native/C function
Line 1939: Line 2070:
  
 ---- ----
-''function update_get_respawn_carrier_id''+===update_get_respawn_carrier_id===
  
 Native/C function Native/C function
Line 1952: Line 2083:
  
 ---- ----
-''function update_get_save_slots''+===update_get_save_slots===
  
 Native/C function Native/C function
Line 1966: Line 2097:
  
 ---- ----
-''function update_get_screen_input''+===update_get_screen_input===
  
 Native/C function Native/C function
Line 1979: Line 2110:
  
 ---- ----
-''function update_get_screen_state_active''+===update_get_screen_state_active===
  
 Native/C function Native/C function
Line 1994: Line 2125:
  
 ---- ----
-''function update_get_screen_team_id''+===update_get_screen_team_id===
  
 Native/C function Native/C function
Line 2011: Line 2142:
  
 ---- ----
-''function update_get_screen_vehicle''+===update_get_screen_vehicle===
  
 Native/C function Native/C function
Line 2044: Line 2175:
  
 ---- ----
-''function update_get_server_list''+===update_get_server_list===
  
 Native/C function Native/C function
Line 2057: Line 2188:
  
 ---- ----
-''function update_get_server_meta''+===update_get_server_meta===
  
 Native/C function Native/C function
Line 2070: Line 2201:
  
 ---- ----
-''function update_get_server_name''+===update_get_server_name===
  
 Native/C function Native/C function
Line 2083: Line 2214:
  
 ---- ----
-''function update_get_skin_color_options''+===update_get_skin_color_options===
  
 Native/C function Native/C function
Line 2096: Line 2227:
  
 ---- ----
-''function update_get_team''+===update_get_team===
  
 Native/C function Native/C function
Line 2114: Line 2245:
  
 ---- ----
-''function update_get_team_color''+===update_get_team_color===
  
 Native/C function Native/C function
Line 2132: Line 2263:
  
 ---- ----
-''function update_get_team_transmission_count''+===update_get_team_transmission_count===
  
 Native/C function Native/C function
Line 2145: Line 2276:
  
 ---- ----
-''function update_get_team_transmission_name''+===update_get_team_transmission_name===
  
 Native/C function Native/C function
Line 2158: Line 2289:
  
 ---- ----
-''function update_get_tile_by_id''+===update_get_tile_by_id===
  
 Native/C function Native/C function
Line 2175: Line 2306:
  
 ---- ----
-''function update_get_tile_by_index''+===update_get_tile_by_index===
  
 Native/C function Native/C function
Line 2193: Line 2324:
  
 ---- ----
-''function update_get_tile_count''+===update_get_tile_count===
  
 Native/C function Native/C function
Line 2211: Line 2342:
  
 ---- ----
-''function update_get_time_ms''+===update_get_time_ms===
  
 Native/C function Native/C function
Line 2224: Line 2355:
  
 ---- ----
-''function update_get_transmission_playback_progress''+===update_get_transmission_playback_progress===
  
 Native/C function Native/C function
Line 2237: Line 2368:
  
 ---- ----
-''function update_get_transmission_playing_index''+===update_get_transmission_playing_index===
  
 Native/C function Native/C function
Line 2250: Line 2381:
  
 ---- ----
-''function update_get_ui_scale''+===update_get_ui_scale===
  
 Native/C function Native/C function
Line 2263: Line 2394:
  
 ---- ----
-''function update_get_vehicle_by_id''+===update_get_vehicle_by_id===
  
 Native/C function Native/C function
Line 2282: Line 2413:
  
 ---- ----
-''function update_get_version''+===update_get_version===
  
 Native/C function Native/C function
Line 2295: Line 2426:
  
 ---- ----
-''function update_get_weapon_line_by_index''+===update_get_weapon_line_by_index===
  
 Native/C function Native/C function
Line 2308: Line 2439:
  
 ---- ----
-''function update_get_weapon_line_count''+===update_get_weapon_line_count===
  
 Native/C function Native/C function
Line 2321: Line 2452:
  
 ---- ----
-''function update_get_weather_fog_factor''+===update_get_weather_fog_factor===
  
 Native/C function Native/C function
Line 2334: Line 2465:
  
 ---- ----
-''function update_get_weather_lightning_factor''+===update_get_weather_lightning_factor===
  
 Native/C function Native/C function
Line 2347: Line 2478:
  
 ---- ----
-''function update_get_weather_precipitation_factor''+===update_get_weather_precipitation_factor===
  
 Native/C function Native/C function
Line 2360: Line 2491:
  
 ---- ----
-''function update_get_weather_wind_velocity''+===update_get_weather_wind_velocity===
  
 Native/C function Native/C function
Line 2373: Line 2504:
  
 ---- ----
-''function update_get_workshop_published_mods''+===update_get_workshop_published_mods===
  
 Native/C function Native/C function
Line 2386: Line 2517:
  
 ---- ----
-''function update_gun_funnel''+===update_gun_funnel===
  
 Lua defined function in vehicle_hud.lua Lua defined function in vehicle_hud.lua
Line 2399: Line 2530:
  
 ---- ----
-''function update_interaction_ui''+===update_interaction_ui===
  
 Lua defined function in pause_menu.lua Lua defined function in pause_menu.lua
Line 2419: Line 2550:
  
 ---- ----
-''function update_launch_carrier''+===update_launch_carrier===
  
 Native/C function Native/C function
Line 2432: Line 2563:
  
 ---- ----
-''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 2576:
  
 ---- ----
-''function update_map_dismiss_notification''+===update_map_dismiss_notification===
  
 Native/C function Native/C function
Line 2458: Line 2589:
  
 ---- ----
-''function update_map_hovered''+===update_map_hovered===
  
 Lua defined function in screen_inventory.lua Lua defined function in screen_inventory.lua
Line 2471: Line 2602:
  
 ---- ----
-''function update_play_sound''+===update_play_sound===
  
 Native/C function Native/C function
Line 2490: Line 2621:
  
 ---- ----
-''function update_play_transmission''+===update_play_transmission===
  
 Native/C function Native/C function
Line 2503: Line 2634:
  
 ---- ----
-''function update_print_metatable''+===update_print_metatable===
  
 Native/C function Native/C function
Line 2516: Line 2647:
  
 ---- ----
-''function update_print_regions''+===update_print_regions===
  
 Native/C function Native/C function
Line 2529: Line 2660:
  
 ---- ----
-''function update_refresh_workshop_published_mods''+===update_refresh_workshop_published_mods===
  
 Native/C function Native/C function
Line 2542: Line 2673:
  
 ---- ----
-''function update_repeat''+===update_repeat===
  
 Lua defined function in library_ui.lua Lua defined function in library_ui.lua
Line 2555: Line 2686:
  
 ---- ----
-''function update_screen_overrides''+===update_screen_overrides===
  
 Lua defined function in library_util.lua Lua defined function in library_util.lua
Line 2597: Line 2728:
  
 ---- ----
-''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 2742:
  
 ---- ----
-''function update_set_connect_address''+===update_set_connect_address===
  
 Native/C function Native/C function
Line 2624: Line 2755:
  
 ---- ----
-''function update_set_go_code''+===update_set_go_code===
  
 Native/C function Native/C function
Line 2637: Line 2768:
  
 ---- ----
-''function update_set_host_max_players''+===update_set_host_max_players===
  
 Native/C function Native/C function
Line 2650: Line 2781:
  
 ---- ----
-''function update_set_host_password''+===update_set_host_password===
  
 Native/C function Native/C function
Line 2663: Line 2794:
  
 ---- ----
-''function update_set_is_block_input''+===update_set_is_block_input===
  
 Native/C function Native/C function
Line 2676: Line 2807:
  
 ---- ----
-''function update_set_is_mod_enabled''+===update_set_is_mod_enabled===
  
 Native/C function Native/C function
Line 2689: Line 2820:
  
 ---- ----
-''function update_set_is_pause_simulation''+===update_set_is_pause_simulation===
  
 Native/C function Native/C function
Line 2702: Line 2833:
  
 ---- ----
-''function update_set_is_text_input_mode''+===update_set_is_text_input_mode===
  
 Native/C function Native/C function
Line 2716: Line 2847:
  
 ---- ----
-''function update_set_is_visible''+===update_set_is_visible===
  
 Native/C function Native/C function
Line 2729: Line 2860:
  
 ---- ----
-''function update_set_join_password''+===update_set_join_password===
  
 Native/C function Native/C function
Line 2742: Line 2873:
  
 ---- ----
-''function update_set_new_game_base_difficulty''+===update_set_new_game_base_difficulty===
  
 Native/C function Native/C function
Line 2755: Line 2886:
  
 ---- ----
-''function update_set_new_game_blueprints''+===update_set_new_game_blueprints===
  
 Native/C function Native/C function
Line 2768: Line 2899:
  
 ---- ----
-''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 2912:
  
 ---- ----
-''function update_set_new_game_is_tutorial''+===update_set_new_game_is_tutorial===
  
 Native/C function Native/C function
Line 2794: Line 2925:
  
 ---- ----
-''function update_set_new_game_island_count''+===update_set_new_game_island_count===
  
 Native/C function Native/C function
Line 2807: Line 2938:
  
 ---- ----
-''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 2951:
  
 ---- ----
-''function update_set_new_game_loadout_type''+===update_set_new_game_loadout_type===
  
 Native/C function Native/C function
Line 2833: Line 2964:
  
 ---- ----
-''function update_set_new_game_team_count_ai''+===update_set_new_game_team_count_ai===
  
 Native/C function Native/C function
Line 2846: Line 2977:
  
 ---- ----
-''function update_set_new_game_team_count_human''+===update_set_new_game_team_count_human===
  
 Native/C function Native/C function
Line 2859: Line 2990:
  
 ---- ----
-''function update_set_observed_vehicle''+===update_set_observed_vehicle===
  
 Native/C function Native/C function
Line 2872: Line 3003:
  
 ---- ----
-''function update_set_screen_background_clip''+===update_set_screen_background_clip===
  
 Native/C function Native/C function
Line 2885: Line 3016:
  
 ---- ----
-''function update_set_screen_background_color''+===update_set_screen_background_color===
  
 Native/C function Native/C function
Line 2898: Line 3029:
  
 ---- ----
-''function update_set_screen_background_is_render_islands''+===update_set_screen_background_is_render_islands===
  
 Native/C function Native/C function
Line 2916: Line 3047:
  
 ---- ----
-''function update_set_screen_background_tile_color_custom''+===update_set_screen_background_tile_color_custom===
  
 Native/C function Native/C function
Line 2929: Line 3060:
  
 ---- ----
-''function update_set_screen_background_type''+===update_set_screen_background_type===
  
 Native/C function Native/C function
Line 2950: Line 3081:
  
 ---- ----
-''function update_set_screen_camera_attach_vehicle''+===update_set_screen_camera_attach_vehicle===
  
 Native/C function Native/C function
Line 2964: Line 3095:
  
 ---- ----
-''function update_set_screen_camera_cull_distance''+===update_set_screen_camera_cull_distance===
  
 Native/C function Native/C function
Line 2977: Line 3108:
  
 ---- ----
-''function update_set_screen_camera_is_render_ocean''+===update_set_screen_camera_is_render_ocean===
  
 Native/C function Native/C function
Line 2990: Line 3121:
  
 ---- ----
-''function update_set_screen_camera_lod_level''+===update_set_screen_camera_lod_level===
  
 Native/C function Native/C function
Line 3003: Line 3134:
  
 ---- ----
-''function update_set_screen_camera_pos_orientation''+===update_set_screen_camera_pos_orientation===
  
 Native/C function Native/C function
Line 3016: Line 3147:
  
 ---- ----
-''function update_set_screen_camera_render_attached_vehicle''+===update_set_screen_camera_render_attached_vehicle===
  
 Native/C function Native/C function
Line 3029: Line 3160:
  
 ---- ----
-''function update_set_screen_map_position_scale''+===update_set_screen_map_position_scale===
  
 Native/C function Native/C function
Line 3047: Line 3178:
  
 ---- ----
-''function update_set_screen_state_exit''+===update_set_screen_state_exit===
  
 Native/C function Native/C function
Line 3090: Line 3221:
  
 ---- ----
-''function update_set_screen_vehicle_control_id''+===update_set_screen_vehicle_control_id===
  
 Native/C function Native/C function
Line 3104: Line 3235:
  
 ---- ----
-''function update_set_server_name''+===update_set_server_name===
  
 Native/C function Native/C function
Line 3117: Line 3248:
  
 ---- ----
-''function update_stop_transmission''+===update_stop_transmission===
  
 Native/C function Native/C function
Line 3130: Line 3261:
  
 ---- ----
-''function update_string_from_epoch''+===update_string_from_epoch===
  
 Native/C function Native/C function
Line 3144: Line 3275:
  
 ---- ----
-''function update_ui_add_triangle''+===update_ui_add_triangle===
  
 Native/C function Native/C function
Line 3163: Line 3294:
  
 ---- ----
-''function update_ui_begin_triangles''+===update_ui_begin_triangles===
  
 Native/C function Native/C function
Line 3182: Line 3313:
  
 ---- ----
-''function update_ui_circle''+===update_ui_circle===
  
 Lua defined function in library_ui.lua Lua defined function in library_ui.lua
Line 3197: Line 3328:
  
 ---- ----
-''function update_ui_end_triangles''+===update_ui_end_triangles===
  
 Native/C function Native/C function
Line 3216: Line 3347:
  
 ---- ----
-''function update_ui_event''+===update_ui_event===
  
 Lua defined function in library_ui.lua Lua defined function in library_ui.lua
Line 3234: Line 3365:
  
 ---- ----
-''function update_ui_format_peer_display_name''+===update_ui_format_peer_display_name===
  
 Native/C function Native/C function
Line 3247: Line 3378:
  
 ---- ----
-''function update_ui_get_image_size''+===update_ui_get_image_size===
  
 Native/C function Native/C function
Line 3263: Line 3394:
  
 ---- ----
-''function update_ui_get_offset''+===update_ui_get_offset===
  
 Native/C function Native/C function
Line 3276: Line 3407:
  
 ---- ----
-''function update_ui_get_text_size''+===update_ui_get_text_size===
  
 Native/C function Native/C function
Line 3299: Line 3430:
  
 ---- ----
-''function update_ui_image''+===update_ui_image===
  
 Native/C function Native/C function
Line 3341: Line 3472:
  
 ---- ----
-''function update_ui_image_power''+===update_ui_image_power===
  
 Native/C function Native/C function
Line 3354: Line 3485:
  
 ---- ----
-''function update_ui_image_rot''+===update_ui_image_rot===
  
 Native/C function Native/C function
Line 3371: Line 3502:
  
 ---- ----
-''function update_ui_line''+===update_ui_line===
  
 Native/C function Native/C function
Line 3399: Line 3530:
  
 ---- ----
-''function update_ui_pop_alpha''+===update_ui_pop_alpha===
  
 Native/C function Native/C function
Line 3413: Line 3544:
  
 ---- ----
-''function update_ui_pop_clip''+===update_ui_pop_clip===
  
 Native/C function Native/C function
Line 3433: Line 3564:
  
 ---- ----
-''function update_ui_pop_offset''+===update_ui_pop_offset===
  
 Native/C function Native/C function
Line 3470: Line 3601:
  
 ---- ----
-''function update_ui_pop_scale''+===update_ui_pop_scale===
  
 Native/C function Native/C function
Line 3483: Line 3614:
  
 ---- ----
-''function update_ui_push_alpha''+===update_ui_push_alpha===
  
 Native/C function Native/C function
Line 3497: Line 3628:
  
 ---- ----
-''function update_ui_push_clip''+===update_ui_push_clip===
  
 Native/C function Native/C function
Line 3517: Line 3648:
  
 ---- ----
-''function update_ui_push_offset''+===update_ui_push_offset===
  
 Native/C function Native/C function
Line 3554: Line 3685:
  
 ---- ----
-''function update_ui_push_scale''+===update_ui_push_scale===
  
 Native/C function Native/C function
Line 3567: Line 3698:
  
 ---- ----
-''function update_ui_rectangle''+===update_ui_rectangle===
  
 Native/C function Native/C function
Line 3607: Line 3738:
  
 ---- ----
-''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 3770:
  
 ---- ----
-''function update_ui_set_back_color''+===update_ui_set_back_color===
  
 Native/C function Native/C function
Line 3653: Line 3784:
  
 ---- ----
-''function update_ui_set_text_color''+===update_ui_set_text_color===
  
 Native/C function Native/C function
Line 3669: Line 3800:
  
 ---- ----
-''function update_ui_text''+===update_ui_text===
  
 Native/C function Native/C function
Line 3712: Line 3843:
  
 ---- ----
-''function update_ui_text_scale''+===update_ui_text_scale===
  
 Native/C function Native/C function
Line 3727: Line 3858:
  
 ---- ----
-''function update_update_workshop_mod''+===update_update_workshop_mod===
  
 Native/C function Native/C function
Line 3740: Line 3871:
  
 ---- ----
-''function update_world_to_screen''+===update_world_to_screen===
  
 Native/C function Native/C function
Line 3754: Line 3885:
  
 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