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

Hooking multiple times one event


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Spyrek
Senior Member
Join Date: Jun 2009
Old 12-01-2017 , 12:32   Hooking multiple times one event
Reply With Quote #1

Hello,
I have a quick question about how the hooks work. What happens if I'm using one hook in few different plugins?
For example, I'm using OnTakeDamage hook in one plugin to change weapon damage, but I want to use the same hook in another plugin and also change weapon damage. The weapon is the same in both plugins.
What will happen? The result damage will be randomly(this one called later) selected from one of these plugins?
Spyrek is offline
luki1412
Veteran Member
Join Date: Oct 2008
Location: OnPluginStart()
Old 12-01-2017 , 15:28   Re: Hooking multiple times one event
Reply With Quote #2

You can hook the same event multiple times in the same plugin or across multiple plugins. Not sure what affects the order though. Dont think its random though.
__________________
luki1412 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:38.


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