Documentation: MaterialAreaCheckerComponent

From Noita Wiki
Jump to navigation Jump to search
Name Type Initial Value Example Range Description
Members
update_every_x_frame int 0 if something other than 0 or 1, will only update_every_x_frames
look_for_failure bool true if true, will send message Message_MaterialAreaCheckerFailed if the material doesn't exist. If false, will send a message Message_MaterialAreaCheckerSuccess if the aabb is full of material and material2
count_min int 0 If > 0, and look_for_failure=0, will send message if material count exceeds this number of cells
always_check_fullness bool false if 1, and look_for_failure=0, will always check the whole area for cells
kill_after_message bool true will kill this entity after sending the message
Custom data types
area_aabb types::aabb (0, 0) (0, 0) aabb offset, we check that this aabb contains only material
material int 0 String name of material that we check that the aabb contains
material2 int 0 String name of material2 that we check that the aabb contains
Privates
mPosition int 0 keeps track where we are
mLastFrameChecked int 0 keeps track of how often we've checked