Script Functions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
 
		
	

 
 Template:Game link's implementation of VScript is built on Template:Game link's. This list only contains classes, functions and variables that differ from CSGO's implementation.
 Template:Game link's implementation of VScript is built on Template:Game link'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. | 
CPlayerVoiceListener
In JBEP3, the PlayerVoiceListener instance has been implemented.
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. | 


























