NPC/PlaySentence

From Garry's Mod
Revision as of 14:15, 19 May 2014 by Jvs (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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