CTakeDamageInfo.SetDamageForce
From GMod Wiki
Function | |
Syntax | CTakeDamageInfo:SetDamageForce( Vector Force ) |
Description: | |
Sets the directional force of the damage. | |
Returns: | nil |
In Object: | Ctakedamageinfo |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=CTakeDamageInfo.SetDamageForce]CTakeDamageInfo.SetDamageForce [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
Description | N/A | ||
---|---|---|---|
Used on | |||
Code |
| ||
Output | N/A |
This page needs to be edited as it contains information that is unclear or incorrect. Improvement can be discussed on the talk page. Find more pages that need work here. Details: None given. |
Additional Notes
- Affects what direction the hit entity gets pushed. Also affects what way ragdolls get pushed if the damage kills an player / NPC.
- Requires large values for some reason. Just take a force vector large enough to push a box, and multiply it by 1000 to get any effect with this.