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

No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
{{toc-right}} | {{toc-right}} | ||
{{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}} {{game link|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 == | == Classes == | ||
Line 80: | Line 80: | ||
== See also == | == See also == | ||
* [[VScript]] | *[[VScript]] | ||
* [[VScript Fundamentals]] | *[[VScript Fundamentals]] | ||
* {{sq}} [[Squirrel]] | *{{sq}} [[Squirrel]] | ||
* [[Listening to game events in CS:GO|Listening to game events]] | *[[Listening to game events in CS:GO|Listening to game events]] | ||
* {{csgo}} [[CSGO Vscript Examples|VScript Examples]] | *{{csgo}} [[CSGO Vscript Examples|VScript Examples]] | ||
* {{l4d2}} [[List of L4D2 Script Functions]] | *{{csgo}} [[List of Counter-Strike: Global Offensive Script Functions]] | ||
* {{portal2}} [[List of Portal 2 Script Functions]] | *{{l4d2}} [[List of L4D2 Script Functions]] | ||
*{{portal2}} [[List of Portal 2 Script Functions]] | |||
[[Category:Jabroni Brawl: Episode 3]] | [[Category:Jabroni Brawl: Episode 3]] | ||
[[Category:Scripting]] | [[Category:Scripting]] |
Revision as of 16:06, 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. |