Up to which point is nameplate modification allowed?
I am on my newest journey to modify the Blizzard's default nameplate.
Currently the project includes:
Afaik, the nameplate modification has been partially(?) blocked in instances like dungeon or raid. Is there any documentation that lists such things? or Is it basically every single modification that is blocked? |
Any code that touches any part of friendly nameplates and any chat bubbles is blocked in instances. Enemy nameplates are not affected.
|
Quote:
That's actually a good new for me as my project is mainly focused on enemy nameplates :) Thanks for the clarification, Kanegasi! One more question tho! In case if I have both, friendly and enemy nameplates, enabled, would the client handle itself to avoid any taints? Or should I perform unit check to see if the assigned unit is friendly or not? |
The game handles that for you. If you show both friendly and enemy nameplates in a dungeon and you've modified the nameplates, the enemy nameplates will have the modifications, the friendly will not. Both will be modified outside of dungeons tho'.
|
Quote:
Thanks for the clarification :D!! |
Quote:
C_NamePlate.GetNamePlateForUnit C_NamePlate.GetNamePlates Then determine if a nameplate is friendly using either of the following: isFriend = UnitIsFriend("unit","otherunit"); UnitIsEnemy("unit","otherunit") Then determine if you are in an instance. inInstance, instanceType = IsInInstance() There are several other ways to determine this. That way you can know when or when not to touch the Friendly Nameplates. I'm not entirely sure there is a direct way to determine if a nameplate is friendly unless it has a tag I'm not aware of. (For Example nameplateObject.IsFriendly) Another way to determine if you can use a nameplate or not is checking to see if that particular one is locked. There is a function that Blizzard uses called CanAccessObject(object). It will return true if you can access an object without taint or if it's locked for whatever reason. You can use this to check if a nameplate object is locked for any reason. |
All times are GMT -6. The time now is 02:59 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI