VSLib
Simple, powerful VScript Library for L4D2
|
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) |
Retrieve entities that match required criteria.
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()
|
private |
Returns a single entity of the specified classname, or null if non-existent
|
private |
Returns a single entity of the specified model, or null if non-existent
|
private |
Returns a single entity of the specified targetname, or null if non-existent
Returns all entities around a radius.
E.g. foreach ( object in Objects.AroundRadius(pos, radius) ) ...
|
private |
Returns L4D1 survivors.
|
private |
Returns all entities of a specific classname.
E.g. foreach ( object in Objects.OfClassname("prop_physics") ) ...
|
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) ) ...
|
private |
Returns all entities of a particular model.
|
private |
Returns all entities of a specific targetname.
|
private |
Returns all entities of a specific targetname within a radius.