Gamemode.CreateEntityRagdoll

From GMod Wiki

Jump to: navigation, search
Event Hook
Hook NameCreateEntityRagdoll
SyntaxGM:CreateEntityRagdoll( Entity entity, Entity ragdoll )
DescriptionA ragdoll of an entity has been created.
ReturnsBoolean
Lua StateNewerServer.png
BBCode[b][url=wiki.garrysmod.com/?title=Gamemode.CreateEntityRagdoll]Gamemode.CreateEntityRagdoll [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Example

DescriptionCreates an Ragdoll of the entity (Being NPC/PLAYER/BOT) in this case the Player who uses the command
Used onNewerServer.png
Code
function RagdollCreate(ply)
return GM:CreateEntityRagdoll(ply,ply)
end
concommand.Add("Ragdollme",RagdollCreate)
Output


Additional notes


Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox