List of ND Script Functions: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with "{{sq}} This list contains all engine-related Squirrel variables, functions, and constants currently available for VScript in {{game link|Nuclear Dawn}}. Some are not availabl...")
 
(Make the script functions list for Nuclear Dawn be accurate to the game. Previous page before this edit previously noted functions that didn't exist and that the page may contain invalid functions. I don't think that's going to happen any day soon)
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{sq}} This list contains all engine-related Squirrel variables, functions, and constants currently available for [[VScript]] in {{game link|Nuclear Dawn}}. Some are not available yet but guaranteed to be in the next update. More not yet listed are also being added to the game and not yet listed.
Automatically generated Squirrel functions list for {{nd|4}}.
 
== Variables ==


== Classes ==
== Classes ==
=== CEntities ===
=== :: (Global functions) ===
==== Methods ====
{| class="standard-table" style="width: 100%;"
{| class="standard-table" style="width: 100%;"
! Function
! Function
Line 10: Line 9:
! Description
! Description
|-
|-
| <code>CreateByClassname</code>
| <code>DebugDrawBox</code>
| <code>handle CEntities::CreateByClassname(string)</code>
| <code>void DebugDrawBox(Vector, Vector, Vector, int, int, int, int, float)</code>
| Creates entity by class name.
| Draw a debug overlay box
|-
| <code>DebugDrawLine</code>
| <code>void DebugDrawLine(Vector, Vector, int, int, int, bool, float)</code>
| Draw a debug overlay box
|-
| <code>DoIncludeScript</code>
| <code>bool DoIncludeScript(string, handle)</code>
| Execute a script (internal)
|-
| <code>GetConVarFloat</code>
| <code>float GetConVarFloat(string)</code>
| Retrieves a ConVar's value as a float
|-
| <code>GetConVarInt</code>
| <code>int GetConVarInt(string)</code>
| Retrieves a ConVar's value as an integer
|-
|-
| <code>FindByClassname</code>
| <code>GetConVarString</code>
| <code>handle CEntities::FindByClassname(handle, string)</code>
| <code>string GetConVarString(string)</code>
| Find entities by class name. Pass 'null' to start an iteration, or reference to a previously found entity to continue a search
| Retrieves a ConVar's value as a string
|-
|-
| <code>FindByClassnameNearest</code>
| <code>GetMapName</code>
| <code>handle CEntities::FindByClassnameNearest(string, Vector, float)</code>
| <code>string GetMapName()</code>
| Find entities by class name nearest to a point.
| Get the name of the map.
|-
|-
| <code>FindByClassnameWithin</code>
| <code>GetTeam</code>
| <code>handle CEntities::FindByClassnameWithin(handle, string, Vector, float)</code>
| <code>handle GetTeam(int)</code>
| Find entities by class name within a radius. Pass 'null' to start an iteration, or reference to a previously found entity to continue a search
| Returns a team's handle.
|-
|-
| <code>FindByModel</code>
| <code>RandomFloat</code>
| <code>handle CEntities::FindByModel(handle, string)</code>
| <code>float RandomFloat(float, float)</code>
| Find entities by model name. Pass 'null' to start an iteration, or reference to a previously found entity to continue a search
| Generate a random floating point number within a range, inclusive
|-
|-
| <code>FindByName</code>
| <code>RandomInt</code>
| <code>handle CEntities::FindByName(handle, string)</code>
| <code>int RandomInt(int, int)</code>
| Find entities by name. Pass 'null' to start an iteration, or reference to a previously found entity to continue a search
| Generate a random integer within a range, inclusive
|-
|-
| <code>FindByNameNearest</code>
| <code>SendToConsole</code>
| <code>handle CEntities::FindByNameNearest(string, Vector, float)</code>
| <code>void SendToConsole(string)</code>
| Find entities by name nearest to a point.
| Send a string to the console as a command
|-
|-
| <code>FindByNameWithin</code>
| <code>SetConVarFloat</code>
| <code>handle CEntities::FindByNameWithin(handle, string, Vector, float)</code>
| <code>void SetConVarFloat(string, float)</code>
| Find entities by name within a radius. Pass 'null' to start an iteration, or reference to a previously found continue a search
| Sets a ConVar's value from a float
|-
|-
| <code>FindByTarget</code>
| <code>SetConVarInt</code>
| <code>handle CEntities::FindByTarget(handle, string)</code>
| <code>void SetConVarInt(string, int)</code>
| Find entities by targetname. Pass 'null' to start an iteration, or reference to a previously found entity to continue a search
| Sets a ConVar's value from an integer
|-
|-
| <code>FindInSphere</code>
| <code>SetConVarString</code>
| <code>handle CEntities::FindInSphere(handle, Vector, float)</code>
| <code>void SetConVarString(string, string)</code>
| Find entities within a radius. Pass 'null' to start an iteration, or reference to a previously found entity to continue a search
| Sets a ConVar's value from a string
|-
|-
| <code>First</code>
| <code>ShowMessage</code>
| <code>handle CEntities::First()</code>
| <code>void ShowMessage(string)</code>
| Begin an iteration over the list of entities
| Print a hud message on all clients
|-
|-
| <code>Next</code>
| <code>Time</code>
| <code>handle CEntities::Next(handle)</code>
| <code>float Time()</code>
| Continue an iteration over the list of entities, providing reference to a previously found entity
| Get the current server time
|}
|}
=== CBaseEntity ===
=== CBaseEntity ===
==== Methods ====
{| class="standard-table" style="width: 100%;"
{| class="standard-table" style="width: 100%;"
! Function
! Function
Line 65: Line 80:
! Description
! Description
|-
|-
| <code>ConnectOutput</code>
| <code>CBaseEntity::ConnectOutput</code>
| <code>void ConnectOutput(string, string)</code>
| <code>void CBaseEntity::ConnectOutput(string, string)</code>
| Adds an I/O connection that will call the named function when the specified output fires
| Adds an I/O connection that will call the named function when the specified output fires
|-
|-
| <code>DisconnectOutput</code>
| <code>CBaseEntity::DisconnectOutput</code>
| <code>void DisconnectOutput(string, string)</code>
| <code>void CBaseEntity::DisconnectOutput(string, string)</code>
| Removes a connected script function from an I/O event.
| Removes a connected script function from an I/O event.
|-
|-
| <code>GetHealth</code>
| <code>CBaseEntity::FirstMoveChild</code>
| <code>int GetHealth()</code>
| <code>handle CBaseEntity::FirstMoveChild()</code>
| Returns health of the entity.
|  
|-
|-
| <code>SetHealth</code>
| <code>CBaseEntity::GetClassname</code>
| <code>void SetHealth(int)</code>
| <code>string CBaseEntity::GetClassname()</code>
| Sets health of the entity.
|  
|-
|-
| <code>GetMaxHealth</code>
| <code>CBaseEntity::GetForwardVector</code>
| <code>int GetMaxHealth()</code>
| <code>Vector CBaseEntity::GetForwardVector()</code>
| Returns maximum health amount of the entity.
| Get the forward vector of the entity
|-
|-
| <code>GetTeam</code>
| <code>CBaseEntity::GetHealth</code>
| <code>handle GetTeam()</code>
| <code>int CBaseEntity::GetHealth()</code>
| Returns handle to the entity's team.
|  
|-
|-
| <code>GetTeamNumber</code>
| <code>CBaseEntity::GetLifeState</code>
| <code>int GetTeamNumber()</code>
| <code>int CBaseEntity::GetLifeState()</code>
| Returns team index of the entity (0 - Unassigned, 1 - Spectator, 2 - Consortium, 3 - Empire).
|  
|-
|-
| <code>GetLifeState</code>
| <code>CBaseEntity::GetMaxHealth</code>
| <code>int GetLifeState()</code>
| <code>int CBaseEntity::GetMaxHealth()</code>
| Returns life state of the entity (0 - alive, 1 - dying, 2 - dead).
|  
|-
|-
| <code>GetClassname</code>
| <code>CBaseEntity::GetMoveParent</code>
| <code>string GetClassname()</code>
| <code>handle CBaseEntity::GetMoveParent()</code>
| Returns classname of the entity.
| If in hierarchy, retrieves the entity's parent
|-
|-
| <code>GetName</code>
| <code>CBaseEntity::GetName</code>
| <code>string GetName()</code>
| <code>string CBaseEntity::GetName()</code>
| Returns target name of the entity.
|  
|-
|-
| <code>GetPreTemplateName</code>
| <code>CBaseEntity::GetOrigin</code>
| <code>string GetPreTemplateName()</code>
| <code>Vector CBaseEntity::GetOrigin()</code>
| Get the entity name stripped of template unique decoration.
|  
|-
|-
| <code>GetOrigin</code>
| <code>CBaseEntity::GetPreTemplateName</code>
| <code>vector GetOrigin()</code>
| <code>string CBaseEntity::GetPreTemplateName()</code>
| Returns absolute origin of the entity.
| Get the entity name stripped of template unique decoration
|-
|-
| <code>SetOrigin</code>
| <code>CBaseEntity::GetRootMoveParent</code>
| <code>void SetOrigin(vector)</code>
| <code>handle CBaseEntity::GetRootMoveParent()</code>
| Sets absolute origin of the entity.
| If in hierarchy, walks up the hierarchy to find the root parent
|-
|-
| <code>GetForwardVector</code>
| <code>CBaseEntity::GetScriptId</code>
| <code>vector GetForwardVector()</code>
| <code>string CBaseEntity::GetScriptId()</code>
| Get the forward vector of the entity.
| Retrieve the unique identifier used to refer to the entity within the scripting system
|-
|-
| <code>SetForwardVector</code>
| <code>CBaseEntity::GetScriptScope</code>
| <code>void SetForwardVector(vector)</code>
| <code>handle CBaseEntity::GetScriptScope()</code>
| Set the orientation of the entity to have this forward vector.
| Retrieve the script-side data associated with an entity
|-
|-
| <code>GetVelocity</code>
| <code>CBaseEntity::GetTeam</code>
| <code>vector GetVelocity()</code>
| <code>handle CBaseEntity::GetTeam()</code>
| Get the velocity of the entity.
|  
|-
|-
| <code>SetVelocity</code>
| <code>CBaseEntity::GetTeamNumber</code>
| <code>void SetVelocity(vector)</code>
| <code>int CBaseEntity::GetTeamNumber()</code>
| Set the velocity of the entity.
|  
|-
|-
| <code>GetMoveParent</code>
| <code>CBaseEntity::GetVelocity</code>
| <code>handle GetMoveParent()</code>
| <code>Vector CBaseEntity::GetVelocity()</code>
| Get handle to the move parent of the entity.
|  
|-
|-
| <code>GetRootMoveParent</code>
| <code>CBaseEntity::NextMovePeer</code>
| <code>handle GetRootMoveParent()</code>
| <code>handle CBaseEntity::NextMovePeer()</code>
| Get handle to the root move parent of the entity.
|  
|-
|-
| <code>FirstMoveChild</code>
| <code>CBaseEntity::SetAbsOrigin</code>
| <code>handle FirstMoveChild()</code>
| <code>void CBaseEntity::SetAbsOrigin(Vector)</code>
| Get handle to the first move child of the entity.
| SetAbsOrigin
|-
|-
| <code>NextMovePeer</code>
| <code>CBaseEntity::SetForwardVector</code>
| <code>handle NextMovePeer()</code>
| <code>void CBaseEntity::SetForwardVector(Vector)</code>
| Get handle to the next move peer of the entity.
| Set the orientation of the entity to have this forward vector
|-
|-
| <code>__KeyValueFromString</code>
| <code>CBaseEntity::SetHealth</code>
| <code>void __KeyValueFromString(string, string)</code>
| <code>void CBaseEntity::SetHealth(int)</code>
| Sets string value for key name on the entity.
|  
|-
|-
| <code>__KeyValueFromInt</code>
| <code>CBaseEntity::SetOrigin</code>
| <code>void __KeyValueFromInt(string, int)</code>
| <code>void CBaseEntity::SetOrigin(Vector)</code>
| Sets int value for key name on the entity.
|  
|-
|-
| <code>__KeyValueFromVector</code>
| <code>CBaseEntity::SetVelocity</code>
| <code>void __KeyValueFromVector(string, vector)</code>
| <code>void CBaseEntity::SetVelocity(Vector)</code>
| Sets vector value for key name on the entity.
|  
|-
|-
| <code>ValidateScriptScope</code>
| <code>CBaseEntity::ValidateScriptScope</code>
| <code>bool ValidateScriptScope()</code>
| <code>bool CBaseEntity::ValidateScriptScope()</code>
| Ensure that an entity's script scope has been created.
| Ensure that an entity's script scope has been created
|-
| <code>GetScriptScope</code>
| <code>handle GetScriptScope()</code>
| Retrieve the script-side data associated with an entity.
|-
| <code>GetScriptId</code>
| <code>int GetScriptId()</code>
| Retrieve the unique identifier used to refer to the entity within the scripting system.
|}
|}
 
=== CEntities ===
=== CNDPlayer ===
==== Methods ====
{|
| <code>IsCommander</code>
| <code>bool IsCommander()</code>
| Get whether or not the player is the commander for their team.
|-
| <code>IsCommanding</code>
| <code>bool IsCommanding()</code>
| Get whether or not the player is currently in RTS mode.
|-
| <code>GetSquad</code>
| <code>handle GetSquad()</code>
| Returns handle to the player's squad.
|-
| <code>GetSquadNumber</code>
| <code>int GetSquadNumber()</code>
| Returns squad index of the player (0 - Alpha, 1 - Bravo, 2 - Charlie, 3 - Delta).
|-
| <code>GetClass</code>
| <code>int GetClass()</code>
| Returns class index of the player.
|-
| <code>GetKit</code>
| <code>int GetKit()</code>
| Returns kit index of the player.
|-
| <code>GetActiveGizmo</code>
| <code>int GetActiveGizmo()</code>
| Returns index of the player's currently selected gizmo.
|-
| <code>IsGizmoActive</code>
| <code>bool IsGizmoActive(int)</code>
| Returns whether effect of gizmo is active, either from equipped on player or active gizmo for player's squad.
|}
 
=== CNDTeam ===
{|
| <code>GetTeamName</code>
| <code>string GetTeamName()</code>
| Returns name of the team.
|-
| <code>GetResources</code>
| <code>int GetResources()</code>
| Returns resource count of the team.
|-
| <code>SetResources</code>
| <code>void SetResources(int)</code>
| Sets resource count of the team.
|-
| <code>GetCommander</code>
| <code>handle GetCommander()</code>
| Returns handle to team's commander player.
|-
| <code>GetSquad</code>
| <code>handle GetSquad(int)</code>
| Returns handle to indexed squad for the team.
|}
 
=== CNDSquad ===
{|
| <code>GetActiveGizmo</code>
| <code>int GetActiveGizmo</code>
| Returns the active gizmo for the squad.
|-
| <code>AddPlayer</code>
| <code>void AddPlayer(handle)</code>
| Adds player to the squad.
|-
| <code>RemovePlayer</code>
| <code>void RemovePlayer(handle)</code>
| Removes player from the squad.
|-
| <code>HasPlayer</code>
| <code>bool HasPlayer(handle)</code>
| Returns whether or not the player is in the squad.
|}
 
=== CEnvEntityMaker ===
 
=== CCallChainer ===
 
=== CSimpleCallChainer ===
 
=== regxp ===
 
=== Vector ===
 
== Other functions ==
=== Engine specific ===
{| class="standard-table" style="width: 100%;"
{| class="standard-table" style="width: 100%;"
! Function
! Function
Line 268: Line 187:
! Description
! Description
|-
|-
| <code>DebugDrawBox</code>
| <code>CEntities::CreateByClassname</code>
| <code>void DebugDrawBox(Vector, Vector, Vector, int, int, int, int, float)</code>
| <code>handle CEntities::CreateByClassname(string)</code>
| Draw a debug overlay box
| Creates an entity by classname
|-
| <code>CEntities::FindByClassname</code>
| <code>handle CEntities::FindByClassname(handle, string)</code>
| Find entities by class name. Pass 'null' to start an iteration, or reference to a previously found entity to continue a search
|-
| <code>CEntities::FindByClassnameNearest</code>
| <code>handle CEntities::FindByClassnameNearest(string, Vector, float)</code>
| Find entities by class name nearest to a point.
|-
|-
| <code>DebugDrawLine</code>
| <code>CEntities::FindByClassnameWithin</code>
| <code>void DebugDrawLine(Vector, Vector, int, int, int, bool, float)</code>
| <code>handle CEntities::FindByClassnameWithin(handle, string, Vector, float)</code>
| Draw a debug overlay box
| Find entities by class name within a radius. Pass 'null' to start an iteration, or reference to a previously found entity to continue a search
|-
|-
| <code>DoIncludeScript</code>
| <code>CEntities::FindByModel</code>
| <code>bool DoIncludeScript(string, handle)</code>
| <code>handle CEntities::FindByModel(handle, string)</code>
| Execute a script (internal)
| Find entities by model name. Pass 'null' to start an iteration, or reference to a previously found entity to continue a search
|-
|-
| <code>EntFire</code>
| <code>CEntities::FindByName</code>
| <code>function EntFire(target, action, value, delay, activator)</code>
| <code>handle CEntities::FindByName(handle, string)</code>
| Generate and entity i/o event
| Find entities by name. Pass 'null' to start an iteration, or reference to a previously found entity to continue a search
|-
|-
| <code>RandomFloat</code>
| <code>CEntities::FindByNameNearest</code>
| <code>float RandomFloat(float, float)</code>
| <code>handle CEntities::FindByNameNearest(string, Vector, float)</code>
| Generate a random floating point number within a range, inclusive
| Find entities by name nearest to a point.
|-
|-
| <code>RandomInt</code>
| <code>CEntities::FindByNameWithin</code>
| <code>int RandomInt(int, int)</code>
| <code>handle CEntities::FindByNameWithin(handle, string, Vector, float)</code>
| Generate a random integer within a range, inclusive
| Find entities by name within a radius. Pass 'null' to start an iteration, or reference to a previously found entity to continue a search
|-
|-
| <code>SendToConsole</code>
| <code>CEntities::FindByTarget</code>
| <code>void SendToConsole(string)</code>
| <code>handle CEntities::FindByTarget(handle, string)</code>
| Send a string to the console as a command
| Find entities by targetname. Pass 'null' to start an iteration, or reference to a previously found entity to continue a search
|-
|-
| <code>ShowMessage</code>
| <code>CEntities::FindInSphere</code>
| <code>void ShowMessage(string)</code>
| <code>handle CEntities::FindInSphere(handle, Vector, float)</code>
| Print a hud message on all clients
| Find entities within a radius. Pass 'null' to start an iteration, or reference to a previously found entity to continue a search
|-
|-
| <code>Time</code>
| <code>CEntities::First</code>
| <code>float Time()</code>
| <code>handle CEntities::First()</code>
| Get the current server time
| Begin an iteration over the list of entities
|-
|-
| <code>UniqueString</code>
| <code>CEntities::Next</code>
| <code>function UniqueString(string)</code>
| <code>handle CEntities::Next(handle)</code>
| Generate a string guaranteed to be unique across the life of the script VM, with an optional root string. Useful for adding data to tables when not sure what keys are already in use in that table.
| Continue an iteration over the list of entities, providing reference to a previously found entity
|}
|}
=== Standard Squirrel libary ===
== Constants ==


== See also ==
== See also ==
* [[L4D2 Vscripts]]
* [[VScript]]
* [[L4D2 Vscript Examples]]
* [[VScript Fundamentals]]
* {{portal2}} [[List of Portal 2 Script Functions]]
* {{sq}} [[Squirrel]]
 
[[Category:Nuclear Dawn]]
[[Category:Scripting]]

Latest revision as of 09:08, 7 August 2025

Automatically generated Squirrel functions list for Nuclear Dawn Nuclear Dawn.

Classes

:: (Global functions)

Methods

Function Signature Description
DebugDrawBox void DebugDrawBox(Vector, Vector, Vector, int, int, int, int, float) Draw a debug overlay box
DebugDrawLine void DebugDrawLine(Vector, Vector, int, int, int, bool, float) Draw a debug overlay box
DoIncludeScript bool DoIncludeScript(string, handle) Execute a script (internal)
GetConVarFloat float GetConVarFloat(string) Retrieves a ConVar's value as a float
GetConVarInt int GetConVarInt(string) Retrieves a ConVar's value as an integer
GetConVarString string GetConVarString(string) Retrieves a ConVar's value as a string
GetMapName string GetMapName() Get the name of the map.
GetTeam handle GetTeam(int) Returns a team's handle.
RandomFloat float RandomFloat(float, float) Generate a random floating point number within a range, inclusive
RandomInt int RandomInt(int, int) Generate a random integer within a range, inclusive
SendToConsole void SendToConsole(string) Send a string to the console as a command
SetConVarFloat void SetConVarFloat(string, float) Sets a ConVar's value from a float
SetConVarInt void SetConVarInt(string, int) Sets a ConVar's value from an integer
SetConVarString void SetConVarString(string, string) Sets a ConVar's value from a string
ShowMessage void ShowMessage(string) Print a hud message on all clients
Time float Time() Get the current server time

CBaseEntity

Methods

Function Signature Description
CBaseEntity::ConnectOutput void CBaseEntity::ConnectOutput(string, string) Adds an I/O connection that will call the named function when the specified output fires
CBaseEntity::DisconnectOutput void CBaseEntity::DisconnectOutput(string, string) Removes a connected script function from an I/O event.
CBaseEntity::FirstMoveChild handle CBaseEntity::FirstMoveChild()
CBaseEntity::GetClassname string CBaseEntity::GetClassname()
CBaseEntity::GetForwardVector Vector CBaseEntity::GetForwardVector() Get the forward vector of the entity
CBaseEntity::GetHealth int CBaseEntity::GetHealth()
CBaseEntity::GetLifeState int CBaseEntity::GetLifeState()
CBaseEntity::GetMaxHealth int CBaseEntity::GetMaxHealth()
CBaseEntity::GetMoveParent handle CBaseEntity::GetMoveParent() If in hierarchy, retrieves the entity's parent
CBaseEntity::GetName string CBaseEntity::GetName()
CBaseEntity::GetOrigin Vector CBaseEntity::GetOrigin()
CBaseEntity::GetPreTemplateName string CBaseEntity::GetPreTemplateName() Get the entity name stripped of template unique decoration
CBaseEntity::GetRootMoveParent handle CBaseEntity::GetRootMoveParent() If in hierarchy, walks up the hierarchy to find the root parent
CBaseEntity::GetScriptId string CBaseEntity::GetScriptId() Retrieve the unique identifier used to refer to the entity within the scripting system
CBaseEntity::GetScriptScope handle CBaseEntity::GetScriptScope() Retrieve the script-side data associated with an entity
CBaseEntity::GetTeam handle CBaseEntity::GetTeam()
CBaseEntity::GetTeamNumber int CBaseEntity::GetTeamNumber()
CBaseEntity::GetVelocity Vector CBaseEntity::GetVelocity()
CBaseEntity::NextMovePeer handle CBaseEntity::NextMovePeer()
CBaseEntity::SetAbsOrigin void CBaseEntity::SetAbsOrigin(Vector) SetAbsOrigin
CBaseEntity::SetForwardVector void CBaseEntity::SetForwardVector(Vector) Set the orientation of the entity to have this forward vector
CBaseEntity::SetHealth void CBaseEntity::SetHealth(int)
CBaseEntity::SetOrigin void CBaseEntity::SetOrigin(Vector)
CBaseEntity::SetVelocity void CBaseEntity::SetVelocity(Vector)
CBaseEntity::ValidateScriptScope bool CBaseEntity::ValidateScriptScope() Ensure that an entity's script scope has been created

CEntities

Methods

Function Signature Description
CEntities::CreateByClassname handle CEntities::CreateByClassname(string) Creates an entity by classname
CEntities::FindByClassname handle CEntities::FindByClassname(handle, string) Find entities by class name. Pass 'null' to start an iteration, or reference to a previously found entity to continue a search
CEntities::FindByClassnameNearest handle CEntities::FindByClassnameNearest(string, Vector, float) Find entities by class name nearest to a point.
CEntities::FindByClassnameWithin handle CEntities::FindByClassnameWithin(handle, string, Vector, float) Find entities by class name within a radius. Pass 'null' to start an iteration, or reference to a previously found entity to continue a search
CEntities::FindByModel handle CEntities::FindByModel(handle, string) Find entities by model name. Pass 'null' to start an iteration, or reference to a previously found entity to continue a search
CEntities::FindByName handle CEntities::FindByName(handle, string) Find entities by name. Pass 'null' to start an iteration, or reference to a previously found entity to continue a search
CEntities::FindByNameNearest handle CEntities::FindByNameNearest(string, Vector, float) Find entities by name nearest to a point.
CEntities::FindByNameWithin handle CEntities::FindByNameWithin(handle, string, Vector, float) Find entities by name within a radius. Pass 'null' to start an iteration, or reference to a previously found entity to continue a search
CEntities::FindByTarget handle CEntities::FindByTarget(handle, string) Find entities by targetname. Pass 'null' to start an iteration, or reference to a previously found entity to continue a search
CEntities::FindInSphere handle CEntities::FindInSphere(handle, Vector, float) Find entities within a radius. Pass 'null' to start an iteration, or reference to a previously found entity to continue a search
CEntities::First handle CEntities::First() Begin an iteration over the list of entities
CEntities::Next handle CEntities::Next(handle) Continue an iteration over the list of entities, providing reference to a previously found entity

See also