Gamemode.CreateEntityRagdoll

From GMod Wiki

Revision as of 15:13, 17 February 2011 by BlackVoid (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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