Entity.DispatchTraceAttack

From GMod Wiki

Jump to: navigation, search
Function
Syntax Entity:DispatchTraceAttack( CTakeDamageInfo Damage, Vector vStartPos, Vector vEndPos )
Description:
"Fires" an attack onto the entity, similar to it being hit by a bullet. But instead of using bullet info, the more generic DamageInfo is used, even if the entity doesn't collide with the line formed by vStartPos and vEndPos.
Returns: nil
In Object: Entity
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Entity.DispatchTraceAttack]Entity.DispatchTraceAttack [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionN/A
Used onNewerMissing.png
Code
LuaIco3.pngThis page needs an example to demonstrate the item detailed on this page. See how to make one here.
See more articles that need examples here.
OutputN/A


Additional Notes

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox