NPC
ν΄λΌμ΄μΈνΈμμ μ¬μ©λλ NPC κ°μ²΄μμ.
ν¨μ
UI HUDλ₯Ό λΆμΌ μ μμ΄μ. (λΆν μ§ UI μ΄λ¦, λΆμΌ UI Screen, Enum.UIDisplayType.νμ
)
-- μν --
local npc = Script.Parent
local AddUI = HUD.PlayerNameUI
wait(2)
npc:AddNPCHUD("NameUI", AddUI, Enum.UIDisplayType.Billboard)
local npcNameUI = npc:GetNPCHUD("NameUI")
npcNameUI.Text:SetText("μ©κ°ν κΈ°μ¬")
UI HUDλ₯Ό μ κ±°ν΄μ. (μ κ±°νκ³ μΆμ UI μ΄λ¦)
-- μν --
local npc = Script.Parent
local AddUI = HUD.PlayerNameUI
npc:AddNPCHUD("NameUI", AddUI, Enum.UIDisplayType.Billboard)
wait(5)
npc:RemoveNPCHUD("NameUI")
νμ¬ μΊλ¦ν°μ λͺ¨λ UI HUDλ₯Ό μ κ±°ν΄μ.
-- μν --
local npc = Script.Parent
local AddUI = HUD.PlayerNameUI
npc:AddNPCHUD("NameUI", AddUI, Enum.UIDisplayType.Billboard)
wait(5)
npc:RemoveNPCAllHUD()
UI HUDλ₯Ό μ»μ μ μμ΄μ. (μ»κ³ μΆμ UI μ΄λ¦)
-- μν --
local npc = Script.Parent
local AddUI = HUD.PlayerNameUI
wait(2)
npc:AddNPCHUD("NameUI", AddUI, Enum.UIDisplayType.Billboard)
local npcNameUI = npc:GetNPCHUD("NameUI")
npcNameUI.Text:SetText("μ©κ°ν κΈ°μ¬")
NPCμ μ΄λ¦μ μ»μ μ μμ΄μ.
-- μν --
local NPC = Script.Parent
print(NPC:GetNPCName())
NPCμ μ΄λ¦μ μ€μ ν μ μμ΄μ.
-- μν --
local NPC = Script.Parent
NPC:SetNPCName("κΈ°μ¬")
μ¬μ© κ°λ₯ν λΆλͺ¨ μ€λΈμ νΈ κΈ°λ₯λ€
μμ±
μ΄λ²€νΈ
ν¨μ
Last updated