Player/CreateRagdoll

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
 
{{Func
 
{{Func
|Name=CreateRagdoll
+
|Description=Creates the player's death ragdoll entity and deletes the old one.
|Parent=Player
+
 
|Description=Creates the player's ragdoll entity.<br/>
+
This is normally used when a player dies, to create their death ragdoll.
<br/>
+
 
This is normally used when a player dies, to create their death ragdoll.<br/>
+
<br/>
+
 
The ragdoll will be created with the player's properties such as [[Entity/GetPos|Position]], [[Entity/GetAngles|Angles]], [[Player/GetPlayerColor|PlayerColor]], [[Entity/GetVelocity|Velocity]] and [[Entity/GetModel|Model]].<br/>
 
The ragdoll will be created with the player's properties such as [[Entity/GetPos|Position]], [[Entity/GetAngles|Angles]], [[Player/GetPlayerColor|PlayerColor]], [[Entity/GetVelocity|Velocity]] and [[Entity/GetModel|Model]].<br/>
<br/>
+
 
You can retrieve the entity this creates with {{ClassFunction|Player|GetRagdollEntity}}.<br/>
+
You can retrieve the entity this creates with {{ClassFunction|Player|GetRagdollEntity}}.
 
|Realm=Server
 
|Realm=Server
 
|IsClass=Yes
 
|IsClass=Yes
 
}}
 
}}

Revision as of 16:27, 6 December 2019

 Player:CreateRagdoll( )

Description

Creates the player's death ragdoll entity and deletes the old one.

This is normally used when a player dies, to create their death ragdoll.

The ragdoll will be created with the player's properties such as Position, Angles, PlayerColor, Velocity and Model.

You can retrieve the entity this creates with Player:GetRagdollEntity.

Personal tools
Navigation