Entity/PassesDamageFilter

From Garry's Mod
(Difference between revisions)
Jump to: navigation, search
(Documented)
 
 
Line 4: Line 4:
 
This will call {{HookFunction|ENTITY|PassesDamageFilter}} on scripted entities of the type "filter".
 
This will call {{HookFunction|ENTITY|PassesDamageFilter}} on scripted entities of the type "filter".
  
'''NOTE:''' This function only works on entities of the type "filter". ( filter_* entities, including base game filter entites )
+
{{Note|This function only works on entities of the type "filter". ( filter_* entities, including base game filter entites )}}
 
|Realm=Server
 
|Realm=Server
 
|IsClass=Yes
 
|IsClass=Yes

Latest revision as of 07:49, 28 April 2016

 Entity:PassesDamageFilter( )

Description

Tests whether the damage passes the entity filter.

This will call ENTITY:PassesDamageFilter on scripted entities of the type "filter".

NOTE

This function only works on entities of the type "filter". ( filter_* entities, including base game filter entites )

Arguments

CTakeDamageInfo dmg

The damage info to test

Returns

boolean

Whether the damage info passes the entity filter.
Personal tools
Navigation