VSLib
Simple, powerful VScript Library for L4D2
 All Classes Namespaces Files Functions Pages
VSLib.EasyLogic.Objects Class Reference

Retrieve entities that match required criteria. More...

Private Member Functions

Entity[] L4D1Survivors ()
 
Entity[] OfClassname (string classname)
 
Entity[] OfClassnameWithin (string classname, Vector origin, double radius)
 
Entity AnyOfClassname (string classname)
 
Entity[] OfName (string targetname)
 
Entity[] OfNameWithin (string targetname, Vector origin, double radius)
 
Entity AnyOfName (string targetname)
 
Entity[] OfModel (string model)
 
Entity AnyOfModel (string model)
 
Entity[] AroundRadius (Vector pos, double radius)
 
Entity[] AliveAroundRadius (Vector pos, double radius)
 

Detailed Description

Retrieve entities that match required criteria.

Member Function Documentation

Entity [] VSLib.EasyLogic.Objects.AliveAroundRadius ( Vector  pos,
double  radius 
)
private

Returns all infected/survivors (including commons) around specified position and radius. If you need to find infected/survivors around a PLAYER instead, just pass in the player's position with player.GetLocation()

Entity VSLib.EasyLogic.Objects.AnyOfClassname ( string  classname)
private

Returns a single entity of the specified classname, or null if non-existent

Entity VSLib.EasyLogic.Objects.AnyOfModel ( string  model)
private

Returns a single entity of the specified model, or null if non-existent

Entity VSLib.EasyLogic.Objects.AnyOfName ( string  targetname)
private

Returns a single entity of the specified targetname, or null if non-existent

Entity [] VSLib.EasyLogic.Objects.AroundRadius ( Vector  pos,
double  radius 
)
private

Returns all entities around a radius.

E.g. foreach ( object in Objects.AroundRadius(pos, radius) ) ...

Entity [] VSLib.EasyLogic.Objects.L4D1Survivors ( )
private

Returns L4D1 survivors.

Entity [] VSLib.EasyLogic.Objects.OfClassname ( string  classname)
private

Returns all entities of a specific classname.

E.g. foreach ( object in Objects.OfClassname("prop_physics") ) ...

Entity [] VSLib.EasyLogic.Objects.OfClassnameWithin ( string  classname,
Vector  origin,
double  radius 
)
private

Returns all entities of a specific classname within a radius.

E.g. foreach ( object in Objects.OfClassnameWithin("prop_physics", Vector(0,0,0), 10) ) ...

Entity [] VSLib.EasyLogic.Objects.OfModel ( string  model)
private

Returns all entities of a particular model.

Entity [] VSLib.EasyLogic.Objects.OfName ( string  targetname)
private

Returns all entities of a specific targetname.

Entity [] VSLib.EasyLogic.Objects.OfNameWithin ( string  targetname,
Vector  origin,
double  radius 
)
private

Returns all entities of a specific targetname within a radius.


The documentation for this class was generated from the following file: