• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

how to use Siese code?

Status
Not open for further replies.

Xaver

Respected Member
how to use Siese code?

"SetVisible", &LuaUnit::SetVisible}, // :SetVisible(x)

what is the x ??


im well the creature is visible off also no visible

thx
 

Rochet2

Moderator / Eluna Dev
Here is the C++ method definition:
Code:
void Unit::SetVisible(bool x)
{
    if (!x)
        m_serverSideVisibility.SetValue(SERVERSIDE_VISIBILITY_GM, SEC_GAMEMASTER);
    else
        m_serverSideVisibility.SetValue(SERVERSIDE_VISIBILITY_GM, SEC_PLAYER);

    UpdateObjectVisibility();
}

So if x is true, it is visible to players etc
If x is false, it is visible to GMs only, so basically its just invisible.
It seems to be used a lot in scripts, however it is not enabled at the moment by default in Eluna due to it being TC only function and the same has not been found yet on mangos.
 
Status
Not open for further replies.
Top