Gamemode.PlayerSpawnRagdoll
From GMod Wiki
Event Hook | |
Hook Name | PlayerSpawnRagdoll |
Syntax | GM:PlayerSpawnRagdoll( Player ply, String mdl, Entity ent ) |
Description | Called when a player tries to spawn a ragdoll |
Returns | Boolean |
Lua State | |
BBCode | [b][url=wiki.garrysmod.com/?title=Gamemode.PlayerSpawnRagdoll]Gamemode.PlayerSpawnRagdoll [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- Return true to allow spawning the ragdoll, false for not allowing it.
- This hook gets called just before the ragdoll is spawned.