Garry's Mod Wiki

Revision Difference

Entity:GetKeyValues#552498

<function name="GetKeyValues" parent="Entity" type="classfunc"> <description> Returns a table containing all key values the entity has. Single key values can usually be retrieved with <page>Entity:GetInternalVariable</page>. <note>This only includes engine defined key values. For custom key values, use <page>GM:EntityKeyValue</page> or <page>ENTITY:KeyValue</page> to capture and store them.</note> Here's a list of keyvalues that will not appear in this list, as they are not stored/defined as actual keyvalues internally: * rendercolor - <page>Entity:GetColor</page> (Only RGB) * rendercolor32 - <page>Entity:GetColor</page> (RGBA) * renderamt - <page>Entity:GetColor</page> (Alpha) * disableshadows - EF_NOSHADOW⤶ * disableshadows - <page text="EF_NOSHADOW">Enums/EF#EF_NOSHADOW</page>⤶ * mins - <page>Entity:GetCollisionBounds</page> * maxs - <page>Entity:GetCollisionBounds</page> * disablereceiveshadows - EF_NORECEIVESHADOW⤶ * nodamageforces - EFL_NO_DAMAGE_FORCES⤶ * disablereceiveshadows - <page text="EF_NORECEIVESHADOW">Enums/EF#EF_NORECEIVESHADOW</page>⤶ * nodamageforces - <page text="EFL_NO_DAMAGE_FORCES">Enums/EFL#EFL_NO_DAMAGE_FORCES</page>⤶ * angle - <page>Entity:GetAngles</page> * angles - <page>Entity:GetAngles</page> * origin - <page>Entity:GetPos</page> * targetname - <page>Entity:GetName</page> </description> <realm>Server</realm> <rets> <ret name="" type="table">A table of key values.</ret> </rets> </function>