Raised This Month: $ Target: $400
 0% 

[Problem Solved]set_entity_visibility written using fakemeta?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SubStream
Veteran Member
Join Date: Aug 2005
Location: USA
Old 01-19-2007 , 20:09   [Problem Solved]set_entity_visibility written using fakemeta?
Reply With Quote #1

Is there a way to write and do what this does
Code:
set_entity_visibility(g_bwEnt[id], 0)
using fakemeta? I'm trying to convert my plugins to fakemeta only. If there is an equivalent way to write this in fakemeta please let me know. Thanks.

NM--found it.

Here it is for whoever can't find it.
Code:
stock fm_set_entity_visibility(index, visible = 1) {
	set_pev(index, pev_effects, visible == 1 ? pev(index, pev_effects) & ~EF_NODRAW : pev(index, pev_effects) | EF_NODRAW)

	return 1
}

Last edited by SubStream; 01-19-2007 at 20:54.
SubStream 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 02:05.


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