Entity.BecomeRagdollOnClient
From GMod Wiki
Function | |
Syntax | Entity:BecomeRagdollOnClient( ) |
Description: | |
Spawns a ragdoll for the entity, and makes the entity invisible. | |
Returns: | nil |
In Object: | Entity |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Entity.BecomeRagdollOnClient]Entity.BecomeRagdollOnClient [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Spawns a ragdoll for all NPCs. |
---|---|
Used on | |
Code | for k,npc in pairs( ents.FindByClass( "npc_*" ) ) do npc.RagDoll = npc:BecomeRagdollOnClient() end |
Output | N/A |