AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [Problem Solved]set_entity_visibility written using fakemeta? (https://forums.alliedmods.net/showthread.php?t=50120)

SubStream 01-19-2007 20:09

[Problem Solved]set_entity_visibility written using fakemeta?
 
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
}



All times are GMT -4. The time now is 22:19.

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