Speech semaphore: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
 
m (recategorize)
Line 8: Line 8:
{{note|Any interrupted talkers will continue to talk.}}
{{note|Any interrupted talkers will continue to talk.}}


[[Category:AI]][[Category:Glossary]]
[[Category:AI Programming]][[Category:Level Design]][[Category:Glossary]]

Revision as of 18:15, 10 June 2006

The speech semaphore restricts talkers' ability to talk.

By default, there are two semaphores: friendlies & foes (based on IsPlayerAlly). See GetSpeechSemaphore in ai_speech.h

If UseSemaphore returns true, only one friendly and one foe is allowed to talk at a time.

If UseSemaphore returns false (whether based entirely on code or on spawnflags), the talker can interrupt other talkers.

Note.pngNote:Any interrupted talkers will continue to talk.