Skip to content

Commit

Permalink
Update documentation on vscript functions. (#28)
Browse files Browse the repository at this point in the history
* Update vscript.md

Add Spawn() description

* Update vscript.md

* GetByIndex docs

* Fix Spawn() description
  • Loading branch information
TheEnderek0 committed May 17, 2023
1 parent ddd4d5a commit 1728c99
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/Reference/vscript.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ Currently the only Chaos game that ships VScript is Portal 2: Community Edition.
| 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 |
| 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 |
| handle CEntities::First() | Begin an iteration over the list of entities |
| handle CEntities::GetByIndex(int) | Get an entity via its entity index. |
| handle CEntities::Next(handle) | Continue an iteration over the list of entities, providing reference to a previously found entity |

## CBaseFlex
Expand Down Expand Up @@ -288,6 +289,7 @@ Currently the only Chaos game that ships VScript is Portal 2: Community Edition.
| void CBaseEntity::SetSize(Vector, Vector) | |
| void CBaseEntity::SetTeam(int) | |
| void CBaseEntity::SetVelocity(Vector) | |
| void CBaseEntity::Spawn() | Calls the entity's Spawn function. This properly initializes the entity and allows it to begin simulating.|
| void CBaseEntity::StopSound(string) | Stops a sound on this entity. |
| bool CBaseEntity::ValidateScriptScope() | Ensure that an entity's script scope has been created |
| int CBaseEntity::entindex() | |
Expand Down

0 comments on commit 1728c99

Please sign in to comment.