User:Tanimodori/Example Lua Global Function Documentation

From Noita Wiki
Jump to navigation Jump to search


bool succ, image = PhysicsAddBodyImage(entity_idimage_filematerialnumber offset_x = 0number offset_y = 0bool centered = falsebool is_circle = falsematerial_image_file = "data/image.png")

Parameters

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"data/image.png"
Corresponding Material Image file


Returns

bool succ
Whether this opreation is successful
image
No description available.


Errors

Invalid Handle other than null.

Examples

bool succ, image = PhysicsAddBodyImage(entity_id, image_file, material, number offset_x = 0, number offset_y = 0, bool centered = false, bool is_circle = false, material_image_file = "data/image.png")
if succ and image then
    print("opreation succeeded")
end

Notes

A simple note