Garry's Mod Wiki

Entity:GetRagdollOwner

Description

Returns the entity which the ragdoll came from. The opposite of Player:GetRagdollEntity.

Returns

1 Entity
The entity who owns the ragdoll.

Example

Loop through all player ragdolls and print their owners.

for e, ent in pairs( ents.GetAll() ) do if( IsValid( ent:GetRagdollOwner() ) ) then print( ent:GetRagdollOwner() ) end end
Output: While a player is dead and their ragdoll is spawned this returns:

Player [1][PlayerName]

Page Links


Special Pages


Wikis

?

Render Time: 140ms

DB GetPage 40
Generate Html 3
SaveChanges (1) 75
Render Body 0
Render Sidebar 19