Entity.BecomeRagdollOnClient

From GMod Wiki

Jump to: navigation, search
Function
Syntax Entity:BecomeRagdollOnClient( )
Description:
Spawns a ragdoll for the entity, and makes the entity invisible.
Returns: nil
In Object: Entity
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Entity.BecomeRagdollOnClient]Entity.BecomeRagdollOnClient [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionSpawns a ragdoll for all NPCs.
Used onNewerClient.png
Code
for k,npc in pairs( ents.FindByClass( "npc_*" ) ) do
	npc.RagDoll = npc:BecomeRagdollOnClient()
end
OutputN/A
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox