From 287fe35fe55b5e88798c94d465591195c853b804 Mon Sep 17 00:00:00 2001 From: Blixibon Date: Mon, 25 May 2020 01:17:49 -0500 Subject: [PATCH] Updated VScript in Mapbase (markdown) --- VScript-in-Mapbase.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/VScript-in-Mapbase.md b/VScript-in-Mapbase.md index afe8ae7..e96d5b5 100644 --- a/VScript-in-Mapbase.md +++ b/VScript-in-Mapbase.md @@ -41,7 +41,7 @@ For more information on VScript itself, [click here](https://developer.valvesoft * [CLogicExternalData](VScript-in-Mapbase#CLogicExternalData) * [Modified VScript Classes](VScript-in-Mapbase#Modified-VScript-Classes) * [CBaseEntity](VScript-in-Mapbase#CBaseEntity) - * [Hooks](VScript-in-Mapbase#Hooks-2) + * [Hooks](VScript-in-Mapbase#Hooks_2) * [CBasePlayer](VScript-in-Mapbase#CBasePlayer) * [CScriptKeyValues](VScript-in-Mapbase#CScriptKeyValues) @@ -105,6 +105,7 @@ The base class shared by players and NPCs. | *handle* FindWeapon(string *classname*)| Find a specific weapon in the character's inventory by its classname. | | *Vector* ShootPosition()| Get the character's shoot position. | | *void* DropAllWeapons()| Make the character drop all of its weapons. | +| *void* EquipWeapon()| Make the character equip the specified weapon. If they don't already own the weapon, they will acquire it instantly. | | *int* GetAmmoCount(string *type*)| Get the ammo count of the specified ammo type. | | *void* SetAmmoCount(string *type*, int *count*)| Set the ammo count of the specified ammo type. | | *int* GetRelationship(handle *target*)| Get a character's relationship to a specific entity. |