Garry's Mod Wiki

Revision Difference

Entity:InitializeAsClientEntity#528722

<function name="InitializeAsClientEntity" parent="Entity" type="classfunc"> <description> <deprecated></deprecated> Initializes this entity as being clientside only. Only works on entities fully created clientside, and as such it has currently no use due to the lack of clientside <page>ents.Create</page>. ⤶ This function is automatically called by <page>ents.CreateClientProp</page>, <page>Global.ClientsideModel</page> and <page>Global.ClientsideScene</page>.⤶ Only works on entities fully created clientside, and as such it has currently no use due this being automatically called by <page>ents.CreateClientProp</page>, <page>ents.CreateClientside</page>, <page>Global.ClientsideModel</page> and <page>Global.ClientsideScene</page>. <bug issue="3368">Calling this on a clientside entity will crash the game.</bug> </description> <realm>Client</realm> </function>