NPC/PlaySentence

From Garry's Mod
Jump to: navigation, search
 NPC:PlaySentence( )

Contents

Description

Forces the NPC to play a sentence from scripts/sentences.txt

Arguments

string sentence

The sentence string to speak.

Arguments

number delay

Delay in seconds until the sentence starts playing.

Arguments

number volume

The volume of the sentence, from 0 to 1.

Returns

number

Returns the sentence index, -1 if the sentence couldn't be played.
Personal tools
Navigation