Raised This Month: $51 Target: $400
 12% 

Solved Button entity OnDamaged


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ShD3luxe
Member
Join Date: Aug 2019
Location: Localhost
Old 08-11-2019 , 19:38   Button entity OnDamaged
Reply With Quote #1

The OnDamaged hook is not working for some buttons if I shoot them ( If i drop a grenade it's working ).
I setted the damaged flag in round start ->
Code:
    new ent = -1;
    while((ent = FindEntityByClassname(ent, "func_button")) != -1) 
    { 
        SetEntProp(ent, Prop_Data, "m_spawnflags", GetEntProp(ent, Prop_Data, "m_spawnflags")|512);    
        HookSingleEntityOutput(ent, "OnDamaged", Event_ButtonShoot)
    }
Any ideeas ? Some buttons trigger this hook and some not only when the damage is from the grenade.

Solved , the problem was the map.

Last edited by ShD3luxe; 08-13-2019 at 09:45. Reason: Solved
ShD3luxe is offline
Reply



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 04:25.


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