Jabroni Brawl: Episode 3/Script Functions: Difference between revisions
Jump to navigation
Jump to search

(Created page with "{{lang|List of Jabroni Brawl: Episode 3 Script Functions}} {{toc-right}} {{sq}} Jabroni Brawl: Episode 3's implementation of VScript is built on {{game link|Counter-Stri...") |
No edit summary |
||
Line 4: | Line 4: | ||
{{sq}} Jabroni Brawl: Episode 3's implementation of [[VScript]] is built on {{game link|Counter-Strike: Global Offensive}}'s. This list only contains classes, functions and variables that differ from CSGO's implementation. | {{sq}} Jabroni Brawl: Episode 3's implementation of [[VScript]] is built on {{game link|Counter-Strike: Global Offensive}}'s. This list only contains classes, functions and variables that differ from CSGO's implementation. | ||
== Classes == | |||
=== CBaseEntity === | |||
==== Methods ==== | |||
{| class="standard-table" style="width: 85%;" | |||
! Function | |||
! Signature | |||
! Description | |||
|- | |||
| <code>SetName</code> | |||
| <code>void SetName(string ''name'')</code> | |||
| Sets the target name of the entity. | |||
|- | |||
| <code>SetParent</code> | |||
| <code>void SetParent(handle ''parent'')</code> | |||
| Sets the parent of an entity. | |||
|- | |||
| <code>SetParentAttachment</code> | |||
| <code>void SetParentAttachment(handle ''parent'', int ''index'')</code> | |||
| Sets the parent of an entity, as well as the attachment point (by index). | |||
|- | |||
| <code>Bonemerge</code> | |||
| <code>void Bonemerge(handle ''target'')</code> | |||
| Starts following an entity via bonemerge. | |||
|- | |||
|} | |||
=== CEntities === | |||
==== Methods ==== | |||
{| class="standard-table" style="width: 100%;" | |||
! Function | |||
! Signature | |||
! Description | |||
|- | |||
| <code>CreateNoSpawn</code> | |||
| <code>handle CreateNoSpawn(string ''classname'')</code> | |||
| Creates an entity by classname without spawning it. | |||
|- | |||
|} | |||
== Global functions == | |||
=== Other === | |||
{| class="standard-table" style="width: 100%;" | |||
! Function | |||
! Signature | |||
! Description | |||
|- | |||
| <code>GetPlayerByUserID</code> | |||
| <code>handle GetPlayerByUserID(int ''userid'')</code> | |||
| Gets a handle to a player from their userID. | |||
|- | |||
| <code>DispatchSpawn</code> | |||
| <code>void DispatchSpawn(handle ''entity'')</code> | |||
| Spawns an entity that has been created but not spawned yet. | |||
|- | |||
|} | |||
=== Removed functions === | |||
{| class="standard-table" style="width: 100%;" | |||
! Function | |||
! Signature | |||
! Description | |||
|- | |||
| <code>CreateProp</code> | |||
| <code>handle CreateProp(string ''classname'', Vector ''origin'', string ''model'', int ''animation'')</code> | |||
| Create a prop with the specified class and model. Both [[prop_physics]], [[prop_dynamic]] as well as some other entity classes with models work. Does not precache the model. | |||
|- | |||
|} | |||
== See also == | |||
* [[VScript]] | |||
* [[VScript Fundamentals]] | |||
* {{sq}} [[Squirrel]] | |||
* [[Listening to game events in CS:GO|Listening to game events]] | |||
* {{csgo}} [[CSGO Vscript Examples|VScript Examples]] | |||
* {{l4d2}} [[List of L4D2 Script Functions]] | |||
* {{portal2}} [[List of Portal 2 Script Functions]] | |||
[[Category:Jabroni Brawl: Episode 3]] | |||
[[Category:Scripting]] |
Revision as of 16:04, 22 July 2021


Jabroni Brawl: Episode 3's implementation of VScript is built on
Counter-Strike: Global Offensive 's. This list only contains classes, functions and variables that differ from CSGO's implementation.
Classes
CBaseEntity
Methods
Function | Signature | Description |
---|---|---|
SetName
|
void SetName(string name)
|
Sets the target name of the entity. |
SetParent
|
void SetParent(handle parent)
|
Sets the parent of an entity. |
SetParentAttachment
|
void SetParentAttachment(handle parent, int index)
|
Sets the parent of an entity, as well as the attachment point (by index). |
Bonemerge
|
void Bonemerge(handle target)
|
Starts following an entity via bonemerge. |
CEntities
Methods
Function | Signature | Description |
---|---|---|
CreateNoSpawn
|
handle CreateNoSpawn(string classname)
|
Creates an entity by classname without spawning it. |
Global functions
Other
Function | Signature | Description |
---|---|---|
GetPlayerByUserID
|
handle GetPlayerByUserID(int userid)
|
Gets a handle to a player from their userID. |
DispatchSpawn
|
void DispatchSpawn(handle entity)
|
Spawns an entity that has been created but not spawned yet. |
Removed functions
Function | Signature | Description |
---|---|---|
CreateProp
|
handle CreateProp(string classname, Vector origin, string model, int animation)
|
Create a prop with the specified class and model. Both prop_physics, prop_dynamic as well as some other entity classes with models work. Does not precache the model. |