Raised This Month: $9 Target: $400
 2% 

Problem in Dota 2 scripting


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Equiment
AlliedModders Donor
Join Date: Feb 2014
Old 10-12-2014 , 17:02   Problem in Dota 2 scripting
Reply With Quote #1

Good day!
Excuse me, if created topic in the wrong section.
I hooked death event in Dota 2 and server all time give me 0 userid - console (so it think that died console, not player). Tried events "dota_player_kill" and "dota_player_killed".
Can someone help me?
Equiment is offline
Equiment
AlliedModders Donor
Join Date: Feb 2014
Old 10-16-2014 , 18:14   Re: Problem in Dota 2 scripting
Reply With Quote #2

Someone knows how to fix it?
Equiment is offline
Equiment
AlliedModders Donor
Join Date: Feb 2014
Old 10-29-2014 , 18:11   Re: Problem in Dota 2 scripting
Reply With Quote #3

I n e e d y o u r h e l p.
Equiment is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 10-29-2014 , 18:16   Re: Problem in Dota 2 scripting
Reply With Quote #4

If you're using player_death, have you tried using dota_player_kill instead?
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Equiment
AlliedModders Donor
Join Date: Feb 2014
Old 10-30-2014 , 13:10   Re: Problem in Dota 2 scripting
Reply With Quote #5

Powerlord, yep >
Quote:
Tried events "dota_player_kill" and "dota_player_killed".
Equiment is offline
psychonic

BAFFLED
Join Date: May 2008
Old 10-30-2014 , 13:19   Re: Problem in Dota 2 scripting
Reply With Quote #6

entity_killed
psychonic is offline
Equiment
AlliedModders Donor
Join Date: Feb 2014
Old 10-30-2014 , 19:36   Re: Problem in Dota 2 scripting
Reply With Quote #7

psychonic, don't work ;(
Equiment is offline
psychonic

BAFFLED
Join Date: May 2008
Old 10-30-2014 , 20:35   Re: Problem in Dota 2 scripting
Reply With Quote #8

Quote:
Originally Posted by Equiment View Post
psychonic, don't work ;(
I respectfully disagree.
psychonic is offline
Equiment
AlliedModders Donor
Join Date: Feb 2014
Old 10-31-2014 , 04:08   Re: Problem in Dota 2 scripting
Reply With Quote #9

Psychonic, it return 0 userid
Equiment is offline
psychonic

BAFFLED
Join Date: May 2008
Old 10-31-2014 , 08:41   Re: Problem in Dota 2 scripting
Reply With Quote #10

There is no "userid" field in that event.

Code:
    "entity_killed"
    {
        "entindex_killed"     "long"
        "entindex_attacker"    "long"
        "entindex_inflictor"    "long"
        "damagebits"        "long"
    }
psychonic is offline
Reply


Thread Tools
Display Modes

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 07:57.


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