DModelPanel:SetEntity
Description
Sets the entity to be rendered by the model panel.
If you set
ent
to a shared entity you must set ent
to nil before removing this panel or else a "Trying to remove server entity on client!" error is thrownArguments
Example
Implementation of a function called StartBreencast which makes Dr. Breen recite his instinct speech within a model panel that's displayed to all clients. This mainly demonstrates how even shared entities such as NPCs can be used with DModelPanel as long as they're networked properly.
Output: "I find it helpful at times like these to remind myself that our true enemy is: Instinct."