Entity:PassesFilter

From Garry's Mod
Jump to: navigation, search
 Entity:PassesFilter( )

Contents

Description

Tests whether the entity passes the entity filter.

This will call ENTITY:PassesFilter 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

Entity caller

The initiator of the test.

For example the trigger this filter entity is used in.

Arguments

Entity ent

The entity to test against the entity filter.

Returns

boolean

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