Raised This Month: $ Target: $400
 0% 

[FAKEMETA] Invalid entity set_pev


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Fuck For Fun
Veteran Member
Join Date: Nov 2013
Old 05-05-2020 , 22:52   Re: [FAKEMETA] Invalid entity set_pev
Reply With Quote #1

Quote:
Originally Posted by Natsheh View Post
Basically the entity is getting killed give it godmode and increase its health
something like that? no take damage of ent
Code:
set_pev(this, pev_owner, pev_takedamage, 0.0);
Fuck For Fun is offline
Send a message via Skype™ to Fuck For Fun
Smilex_Gamer
Senior Member
Join Date: Apr 2017
Location: Portugal
Old 05-06-2020 , 05:09   Re: [FAKEMETA] Invalid entity set_pev
Reply With Quote #2

Quote:
Originally Posted by Fuck For Fun View Post
something like that? no take damage of ent
Code:
set_pev(this, pev_owner, pev_takedamage, 0.0);
I think this is how you set it to take no damage:

Code:
set_pev(this, pev_takedamage, DAMAGE_NO);
Check if the entity is invalid:

Code:
public HandleUpdateOwnerTask(this)
{
	if(!pev_valid(this)) return FMRES_IGNORED;

	set_pev(this, pev_owner, 0);
}
Smilex_Gamer 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:13.


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