Gamemode.PlayerSpawnedRagdoll

From GMod Wiki

Revision as of 04:59, 23 June 2010 by Crazy Quebecer (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Event Hook
Hook NamePlayerSpawnedRagdoll
SyntaxGM:PlayerSpawnedRagdoll( Player player, String model, Entity ragdoll )
DescriptionCalled when a player has already spawned a ragdoll.
ReturnsNil
Lua StateNewerServer.png
BBCode[b][url=wiki.garrysmod.com/?title=Gamemode.PlayerSpawnedRagdoll]Gamemode.PlayerSpawnedRagdoll [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Example

DescriptionExample of usage
Used onNewerServer.png
Code
 
local function SpawnedRagdoll(ply, model, EntID)
	ents.GetByIndex(EntID):SetOwner(ply)
end
hook.Add("PlayerSpawnedRagdoll", "PlayerEntitySpawnRagdoll", SpawnedRagdoll)
 
OutputN/A


Additional Notes

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox