View Single Post
08-29-21, 03:54 AM   #2
briskman3000
A Flamescale Wyrmkin
 
briskman3000's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2009
Posts: 108
In your addon file, you would need to create a function that has that script inside of it, and then trigger than function to run on player login.

Something similar to this should work

Lua Code:
  1. local setnameplateframe = CreateFrame("Frame", setnameplateframe)
  2.  
  3. local function setnameplatesize(self, event, ...)
  4.      C_NamePlate.SetNamePlateFriendlySize(60, 60)
  5. end
  6.  
  7. setnameplateframe:RegisterEvent("PLAYER_LOGIN")
  8. setnameplateframe:SetScript("OnEvent", setnameplatesize)

I have not tested this code and can not guarantee that it works.
__________________
My Addons: Convert Ratings Honor Track
  Reply With Quote