Template:Lua global function parameters description

From Noita Wiki
Jump to navigation Jump to search

About the Template

Show the lua global function parameter list defined by Template:Lua global function parameters.

Usage

{{Lua global function parameters description
| param_desc_1 =
| param_desc_2 =
| param_desc_3 =
| param_desc_4 =
| param_desc_5 =
| param_desc_6 =
| param_desc_7 =
| param_desc_8 =
| param_desc_9 =
| param_desc_10 =
}}

Example

{{Lua global function parameters
| function_name = PhysicsAddBodyImage
| param_name_1 = entity_id
| param_name_2 = image_file
| param_name_3 = material
| param_name_4 = offset_x
| param_name_5 = offset_y
| param_name_6 = centered
| param_name_7 = is_circle
| param_name_8 = material_image_file
| param_type_4 = number
| param_type_5 = number
| param_type_6 = bool
| param_type_7 = bool
| param_default_4 = 0
| param_default_5 = 0
| param_default_6 = false
| param_default_7 = false
}}
{{Lua global function parameters description
| param_desc_1 = Entity ID that you want to add to
| param_desc_2 = Image file that you want to add
| param_desc_3 =
| param_desc_4 = offset of x coordinate
| param_desc_5 = offset of y coordinate
| param_desc_6 =
| param_desc_7 =
| param_desc_8 = Corresponding Material Image file
}}


Results in:


entity_id
Entity ID that you want to add to
image_file
Image file that you want to add
material
No description available.
number offset_x0
offset of x coordinate
number offset_y0
offset of y coordinate
bool centeredfalse
No description available.
bool is_circlefalse
No description available.
material_image_file
Corresponding Material Image file