AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [Help] Register Event (https://forums.alliedmods.net/showthread.php?t=295593)

DarthMan 03-30-2017 11:16

[Help] Register Event
 
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!

edon1337 03-30-2017 12:05

Re: [Help] Register Event
 
FM_TraceLine for both, check if HP is 0 to know if entity was destroyed.

DarthMan 03-30-2017 12:36

Re: [Help] Register Event
 
Quote:

Originally Posted by edon1337 (Post 2507930)
FM_TraceLine for both, check if HP is 0 to know if entity was destroyed.

Isn't FM_Traceline used when touching entities?

edon1337 03-30-2017 12:57

Re: [Help] Register Event
 
Quote:

Originally Posted by DarthMan (Post 2507943)
Isn't FM_Traceline used when touching entities?

No, that's FM_Touch.

DarthMan 03-30-2017 13:22

Re: [Help] Register Event
 
Quote:

Originally Posted by edon1337 (Post 2507954)
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 :)


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

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