util.BlastDamage
From GMod Wiki
Revision as of 19:21, 29 October 2009 by Crazy Quebecer (Talk | contribs)
Function | |
Syntax |
util.BlastDamage( Weapon inflictor, Entity attacker, Vector position, Float radius, Float damage ) Where is this used? |
Description: | |
Damages all entities near the specified position within the specified radius and gives any kills to the attacker. | |
Returns: | nil |
Part of Library: | Util |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Util.BlastDamage]Util.BlastDamage [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Additional Notes
- The damage dealt gets smaller as the distance from the blast's origin gets bigger.
- For kill crediting with SENTs, make the first parameter the entity, and the second parameter the player.
- This function will cause wooden props to catch fire.
- Also because of the nature of blast damage it will inflict force relative to the blast damage position.
- Players near the blast will get the ear-ringing effect