vscript seems to be very uncommon here (and off curse it is.. (: ) but maybe someone can help me with this anyway.
I want to make players totally invisible by calling a vscript in my CSGO map.
I managed to make the player model invisible by changing the model to ghost.mdl but... The weapon model is still there and people can see the weapon moving and jumping.
This code makes the player model invisible.
PHP Code:
function playerChangeModel()
{
//Makes playermodel invisible.
activator.SetModel("models/ghost/ghost.mdl")
}
I tried with this code but it only make the view model from first person invisible so I did try and change weapon_proficiency to a lot of different stuff but cant make it work.
PHP Code:
function playerChangeWeapon()
{
//Makes viewmodel arms and gun invisible.
local vm = null
while(vm = Entities.FindByClassname(vm, "weapon_proficiency"))
{
vm.SetModel("models/ghost/ghost.mdl")
}
}
Someone know how to change the weapon model that can be sin by everyone on the map? Or do you know any other way to make players invisible by vscript? Then I really want to know! ( :
__________________