Raised This Month: $ Target: $400
 0% 

[L4D2] infected_death event infected_id always = 0


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
saucex4
Junior Member
Join Date: May 2012
Old 06-26-2012 , 11:39   [L4D2] infected_death event infected_id always = 0
Reply With Quote #1

EDIT: Ahh dammit, I posted it in the wrong section....so sorry

With the following code, I keep getting 0, everytime I kill a zombie.
My expectation is the entity ID of the zombie, but it never seems to work.

I've tried changing the key to "entityid" and "entity_id" just to see what would happen, but it's the same thing. Am I missing something here?

Code:
public OnPluginStart() {
    HookEvent("infected_death", Event_InfectedDeath);
}

public Event_InfectedDeath(Handle:event, const String:name[], bool:dontBroadcast) {
    if (g_deathDebug) {
        PrintToChatAll("infected_id = %d",GetEventInt(event,"infected_id"));
    }
}
Any help and/or solution is much appreciated, thank you!

Last edited by saucex4; 06-26-2012 at 11:43.
saucex4 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 06:11.


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