Skip to content

OnActorVoiceEnd

The line PlayActorVoice or PlayActorBark started is over.

Not called for a line cut by StopActorVoice or by the actor’s next line, nor for the lines of a conversation (OnActorConversationEnd tells its end).

function OnActorVoiceEnd(id, line)
-- ...
end
Parameter Type
id number the actor
line string the line’s id

nothing

-- a herald who cries his news three times
function OnActorVoiceEnd(id, line)
if id == herald and cries < 3 then cries = cries + 1 PlayActorVoice(id, line, nil, 60) end
end

PlayActorVoice · PlayActorBark · the Actor life group of the index