{"slug":"objects/entity_extensions","category":"objects","title":"Entity extensions","kind":"markdown","intro":"","body":"**Entities extensions** are additional properties of objects (changes in shape, size, interaction with peds and the game world, audio and particle effects, etc).\n\n## CExtensionDefExpression\n\n**Expression extension** is the ability of an entity to change shape and size (for example, open the drawer in the dresser, leave a bite mark on an apple, fill a glass with wine, etc). It is used in animations. Also you can use [entity_DOF_names](https://github.com/femga/rdr3_discoveries/blob/master/objects/entity_extensions/entity_extensions___expressions___entity_DOF_names.lua) to change expression of entities.\n\n## CExtensionDefDoor\n\n**Door extension** is ability of door entity to be \"locked\" or \"open\" by freezing and adding invisible collision. You can check all entities with door extensions [in this file](https://github.com/femga/rdr3_discoveries/blob/master/doorHashes/doorhashes.lua). Only doors with \"door extension\" can be \"locked\". If u want \"lock\" additional door, you must add \"door extension\" for this entity in the YMAP file.\n\n## CExtensionDefSwayableEffect\n\n**SwayableEffect** is ability of an entity to react to wind and collisions with other objects.\n\n## CExtensionDefAudioEmitter\n\n**AudioEmitter** is ability of an entity to emit sounds (clock ticks, steam noise, buzzing insects, and so on).\n\n## CExtensionDefBuoyancy\n\n**Buoyancy** is ability of an entity to float in the water and not sink.\n\n## CExtensionDefExplosionEffect\n\n**ExplosionEffect** is ability of an entity to emit explosion effect when damaged.\n\n## CExtensionDefLadder\n\n**Ladder** extension allows peds to climb this entity.\n\n## CExtensionDefLightEffect\n\n**LightEffect** extension is ability of an entity to emit light.\n\nWith entities that have lightEffect extension, you can use the \"light manipulation\" natives:<br>\n\t_SET_LIGHT_INTENSITY_FOR_OBJECT\t\t(0xF49574E2332A8F06)<br>\n\t_SET_LIGHT_SCATTERING_DISABLED_FOR_OBJECT\t(0x04D1D4E411CE52D0)<br>\n\t_SET_LIGHT_TRANSLUCENCY_FOR_OBJECT\t(0x63E39F09310F481F)<br>\n\tetc...<br>\n\n## CExtensionDefParticleEffect\n\n**ParticleEffect** is ability of an entity to emit particle effect when it interacts with peds, is damaged or destroyed, etc...","tables":[],"sourceUrl":"https://github.com/femga/rdr3_discoveries/tree/477aaaccadb7f0c042286611d9939009636cff12/objects/entity_extensions","rows":[]}