Raised This Month: $ Target: $400
 0% 

Solved Get 'Owner' of other third entity


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
sursista
Senior Member
Join Date: Jul 2010
Location: Spain
Old 06-28-2021 , 12:03   Re: Get 'Owner' of other third entity
Reply With Quote #10

Quote:
Originally Posted by Natsheh View Post
Celena luna

What is 2 suppose to mean in Execution of ham_TakeDamage

Code:
ExecuteHamB(Ham_TakeDamage, id , 2, attacker, float(damage), DMG_GENERIC);
You do realize that the second argument or parameter in Ham_TakeDamage is the inflictor index which holds the entity id that dealt the damage or dealing the damage it can be a nonplayer entity or a player entity.
I am a bit green, that part of the code I have not written, nor do I know what the number '2' means, if someone with more experience knows it, maybe we can understand it, but I suppose it will be the entity. If the attacker does damage (and it is not definitive) it does receive it and it works well, but it does not work when the attacker kills the victim with a single hit, such as increasing the damage from a cvar (to make a test)

Last edited by sursista; 06-28-2021 at 12:05.
sursista is offline
Send a message via MSN to sursista Send a message via Skype™ to sursista
 



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 02:39.


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