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).
Syntax
Section titled “Syntax”function OnActorVoiceEnd(id, line) -- ...end| Parameter | Type | |
|---|---|---|
id |
number | the actor |
line |
string | the line’s id |
Returns
Section titled “Returns”nothing
Example
Section titled “Example”-- a herald who cries his news three timesfunction OnActorVoiceEnd(id, line) if id == herald and cries < 3 then cries = cries + 1 PlayActorVoice(id, line, nil, 60) endendSee also
Section titled “See also”PlayActorVoice · PlayActorBark · the Actor life group of the index
