util/BlastDamage

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Created page with "{{Func |Name=BlastDamage |Parent=util |Description=Applies explosion damage to all entities in the specified radius. |Realm=Server |IsClass=No }} {{Arg |type=Entity |n...")
 
 
Line 19: Line 19:
 
|type=Vector
 
|type=Vector
 
|name=damageOrigin
 
|name=damageOrigin
|desc=Any position on the plane.
+
|desc=The center of the explosion
 
}}
 
}}
 
{{Arg
 
{{Arg

Latest revision as of 12:22, 17 May 2014

 util.BlastDamage( )

Contents

Description

Applies explosion damage to all entities in the specified radius.

Arguments

Entity inflictor

The entity that caused the damage.

Arguments

Entity attacker

The entity that attacked.

Arguments

Vector damageOrigin

The center of the explosion

Arguments

number damageRadius

The radius in which entities will be damaged.

Arguments

number damage

The amount of damage to be applied.
Personal tools
Navigation