요약
속성
메서드
GetCurrentPlayers():Instances |
이벤트
DialogChoiceSelected(player: Instance,dialogChoice: Instance):RBXScriptSignal |
상속된 멤버
API 참조
속성
메서드
GetCurrentPlayers
Dialog:GetCurrentPlayers():Instances
반환
Instances
코드 샘플
대화:현재플레이어가져오기
local dialog = script.Parent
local function onChoiceSelected(_player, _choice)
local currentPlayers = dialog:GetCurrentPlayers()
print("대화의 현재 플레이어:")
for _, player in ipairs(currentPlayers) do
print(player)
end
end
dialog.DialogChoiceSelected:Connect(onChoiceSelected)이벤트
DialogChoiceSelected