Documentation: LightningComponent

From Noita Wiki
Jump to navigation Jump to search
Name Type Initial Value Example Range Description
Members
sprite_lightning_file std::string data/particles/lightning_ray.png particle effect, from where the file is loaded that lightning is generated from
is_projectile bool false if this is true, it's a projectile lightning and looks for ProjectileComponent and uses the data from there to move it
explosion_type int 1 1 = lightning trail
arc_lifetime int 60 remaining number of frames the arc exists
Objects
config_explosion ConfigExplosion
Privates
mExPosition vec2 (0, 0) stores the ex position of this entity
mArcTarget EntityID if 'mArcTarget' points to an existing entity a lighting arc will be created between this entity and 'mArcTarget'