Raised This Month: $7 Target: $400
 1% 

[L4D2] VScripting How to Startle a Witch


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
jeremyvillanueva
AlliedModders Donor
Join Date: Jan 2021
Location: dcord:Jeremy333#7632
Old 05-13-2021 , 10:18   [L4D2] VScripting How to Startle a Witch
Reply With Quote #1

Hi, I need help,
I'm trying to startle a Witch with VScript, I'm using VSLib also
PHP Code:
foreach( witch in ::VSLib.EasyLogic.Zombies.Witches() )
        {
            
local vsPlayer = ::VSLib.EasyLogic.Players.SurvivorWithHighestFlow();
            
witch.Damage(witch.GetHealth()-990vsPlayer);
            
//if ( witch.IsAlive() && Entities.FindByClassname( null, "worldspawn" ) )
            //    witch.Damage(witch.GetHealth()-99, 0, ::VSLib.Entity("worldspawn"));
            
witch.SetNetProp"m_rage"1);
            
witch.SetNetProp"m_mobRush"1);
            
//Entity(ent).BotAttack(vsPlayer);
            
witch.BotAttack(vsPlayer);
        } 
I just get the witch to get her health reduction, but she still wanders...

May you help me, please?
jeremyvillanueva is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:00.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode