Revision Difference
Entity:GetKeyValues#528734
<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. "targetname" is not an actual key value in-engine, use <page>Entity:GetName</page> for that instead. For custom key values, use <page>GM:EntityKeyValue</page> or <page>ENTITY:KeyValue</page> to capture and store them.</note>
<note>Not all key values can be retrieved. Some of them are write-only.</note>⤶
</description>⤶
<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⤶
* mins - <page>Entity:GetCollisionBounds</page>⤶
* maxs - <page>Entity:GetCollisionBounds</page>⤶
* disablereceiveshadows - EF_NORECEIVESHADOW⤶
* nodamageforces - EFL_NO_DAMAGE_FORCES⤶
* 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>