Garry's Mod Wiki

Entity:PassesFilter

boolean Entity:PassesFilter( Entity caller, Entity ent )

Description

Tests whether the entity passes the entity filter.

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

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

Arguments

1 Entity caller
The initiator of the test.

For example the trigger this filter entity is used in.

2 Entity ent
The entity to test against the entity filter.

Returns

1 boolean
Whether the entity info passes the entity filter.

Page Links


Special Pages


Wikis

?

Render Time: 43ms

Session 0
DB GetPage 3
Generate Html 15
SaveChanges 11
Render Body 0
Render Sidebar 11