View Full Version : how to use Siese code?
10-21-2014, 01:01 PM
how to use Siese code?
"SetVisible", &LuaUnit::SetVisible}, // :SetVisible(x)
what is the x ??
im well the creature is visible off also no visible
10-21-2014, 02:33 PM
Here is the C++ method definition:
void Unit::SetVisible(bool x)
m_serverSideVisibility.SetValue(SERVERSIDE_VISIBIL ITY_GM, SEC_GAMEMASTER);
m_serverSideVisibility.SetValue(SERVERSIDE_VISIBIL ITY_GM, SEC_PLAYER);
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.
10-22-2014, 11:02 AM
ok thx for info
Powered by vBulletin® Version 4.2.3 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.