ActionSequence
Last updated
local ActionSequence = script.Parent
local TrackInfos = ActionSequence:GetAllTrackInfos() -- 모든 트랙 정보 가져오기
for i = 1, #TrackInfos do
local trackInfo = trackInfos[i]
print(trackInfo.TrackName)
print(trackInfo.TrackType)
print(trackInfo.IsEnable)
print(trackInfo.TrackData)
endlocal ActionSequence = script.Parent
-- self : 액션시퀀스를 실행한 캐릭터 모델이 전달됩니다.
ActionSequence:GetMarkerReachedSignal("EventName"):Connect(function(self)
-- ...
end)local ActionSequence = script.Parent
local TrackName = "SomeColTrackName_1"
local TackType = Enum.ActionSequenceTrackType.CollisionTrack
local TrackInfo = ActionSequence:GetTrackInfo(TrackName, TrackType) -- 특정 트랙 정보 가져오기
if TrackInfo ~= nil then
print(TrackInfo.TrackName)
print(TrackInfo.TrackType)
print(TrackInfo.IsEnable)
print(TrackInfo.TrackData)
endlocal ActionSequence = script.Parent
-- self : 액션시퀀스를 실행한 캐릭터 모델이 전달됩니다.
-- other : 충돌 판정에 감지된 대상 객체(캐릭터 모델 또는 Part)가 전달됩니다.
ActionSequence:Hit("CollisionEventName"):Connect(function(self, other)
-- ...
end)local ActionSequence = script.Parent
-- self : 액션시퀀스를 실행한 캐릭터 모델이 전달됩니다.
ActionSequence:TriggerEnded("TriggerName"):Connect(function(self)
-- ...
end)local ActionSequence = script.Parent
-- self : 액션시퀀스를 실행한 캐릭터 모델이 전달됩니다.
ActionSequence:TriggerStarted("TriggerName"):Connect(function(self)
-- ...
end)