Garry's Mod Wiki

Entity:GetDTEntity

  Entity Entity:GetDTEntity( number key )

Description

This is used internally - although you're able to use it you probably shouldn't.

This is called internally by the Entity:NetworkVar system, you can use this in cases where using NetworkVar is not possible.

Returns an entity stored in the datatable of the entity.

Arguments

1 number key
Goes from 0 to 31. Specifies what key to grab from datatable.

Returns

1 Entity
Requested entity.