Raised This Month: $ Target: $400
 0% 

[Help] Register Event


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DarthMan
Veteran Member
Join Date: Aug 2011
Old 03-30-2017 , 11:16   [Help] Register Event
Reply With Quote #1

Hello. I am new to register event, never used it before.
I need a little bit of help, since Gunman Chronicles does not support hamsandwich, I have to convert one of my HL scripts to support GC. So I want 2 register events, 1 for damage taken to func_breakable entity, and 1 for when the entity is destroyed. Can somone help me? Thanks!

Last edited by DarthMan; 03-30-2017 at 11:30.
DarthMan is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 03-30-2017 , 12:05   Re: [Help] Register Event
Reply With Quote #2

FM_TraceLine for both, check if HP is 0 to know if entity was destroyed.
__________________

Last edited by edon1337; 03-30-2017 at 12:06.
edon1337 is offline
DarthMan
Veteran Member
Join Date: Aug 2011
Old 03-30-2017 , 12:36   Re: [Help] Register Event
Reply With Quote #3

Quote:
Originally Posted by edon1337 View Post
FM_TraceLine for both, check if HP is 0 to know if entity was destroyed.
Isn't FM_Traceline used when touching entities?
DarthMan is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 03-30-2017 , 12:57   Re: [Help] Register Event
Reply With Quote #4

Quote:
Originally Posted by DarthMan View Post
Isn't FM_Traceline used when touching entities?
No, that's FM_Touch.
__________________

Last edited by edon1337; 03-30-2017 at 12:58.
edon1337 is offline
DarthMan
Veteran Member
Join Date: Aug 2011
Old 03-30-2017 , 13:22   Re: [Help] Register Event
Reply With Quote #5

Quote:
Originally Posted by edon1337 View Post
No, that's FM_Touch.
It turns out that I was able to fix HaM and make it compatible with GC, bye diting the hamdata ini.
Thanks anyway
DarthMan 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 17:55.


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