RDNWiki: DOWScar/Functions/ActorPlaySpeech ...

RDN Wiki Home | Page Index | Recent Changes | Recently Commented | Users | Registration | Login:  Password:  

Actor_PlaySpeech


Plays a speech event for a given actor.


Void Actor_PlaySpeech(
ActorTable actor,
Integer locID,
String optionalPath

)


Parameters


actor

An actor from the actors list.

locID

The localisation ID of a UCS file line, and the speech sound file name, to speak.

optionalPath

An optional path for the location of the speech sound file.

Description


Plays a speech event for a given actor.

Sounds will be taken from the data:sound/speech/nis/ folder. If you wish to play a sound from another folder you must use an optional path (ie. 'speech/single_player/guardsman/morale')

If the speech file is not available, a placeholder time will be calculated for the message using the number of words and the message will be displayed for that length of time (minimum time 4 seconds, maximum time 50 seconds, at 0.5 seconds per word. This is defined in the nislet.lua file, located in \W40k\game folder).

Remarks


Different and custom actors are located in the ActorTable, for the actor field.

Example

Function Revisions


1.00: Initial function.

Source


Actor.scar

See Also


Categories: Actor

Referring pages: DOWScar/Functions/Index
DOWScar/Functions/IndexActor

There are no files on this page. [Display files/form]
There is no comment on this page. [Display comments/form]