Difference between revisions of "SAY AMBIENT SPEECH"

From GTAMods Wiki
Jump to navigation Jump to search
(Added page)
 
 
Line 20: Line 20:
 
If P3 is 1, regardless of P4, speech will always be spoken.
 
If P3 is 1, regardless of P4, speech will always be spoken.
  
If P3 is 0, and P4 is 1, speech will only be spoken if more than 15-17 seconds since the previous speech was spoken has passed. (Not sure on the exact time, or if the time is determined from the time the speech starts playing, or after it ends)
+
If P3 is 0, and P4 is 1, speech will only be spoken if more than 15-17 seconds since the previous speech was spoken has passed. (Not sure on the exact time, or if the time is determined from the time the speech starts playing, or after it ends. However, it does seem like it's around 16.7 seconds)

Latest revision as of 04:24, 17 August 2011

SAY_AMBIENT_SPEECH
Number of parameters: 5
Parameter #TypeDescription
1.HandleChar to say the speech
2.StringThe id of the speech to say
3.IntegerAlways speak (0 = depend on P4, 1 = always speak)
4.IntegerAllow speech once per 15-17 seconds
5.IntegerCancel megaphone (0 = don't cancel, 1 = cancel)
Return value:
TypeDescription
None

Makes the specified char say the specified phrase. If P5 is 1, speech that ends with _MEGAPHONE will be spoken without echo.

By the looks of it, if P3 and P4 are both 0, speech will never be spoken no matter what.

If P3 is 1, regardless of P4, speech will always be spoken.

If P3 is 0, and P4 is 1, speech will only be spoken if more than 15-17 seconds since the previous speech was spoken has passed. (Not sure on the exact time, or if the time is determined from the time the speech starts playing, or after it ends. However, it does seem like it's around 16.7 seconds)