/// <summary> /// Set the last player chat(text) volume before it gets sent to other players. /// - nTalkVolume: The new volume of the chat text to be sent onto other players. /// TALKVOLUME_TALK /// TALKVOLUME_WHISPER /// TALKVOLUME_SHOUT /// TALKVOLUME_SILENT_SHOUT (used for DM chat channel) /// TALKVOLUME_PARTY /// TALKVOLUME_TELL (sends the chat message privately back to the original speaker) /// Note: The new chat message gets sent after the OnPlayerChat script exits. /// </summary> public static void SetPCChatVolume(TalkVolumeType nTalkVolume) { Internal.NativeFunctions.StackPushInteger(nTalkVolume.InternalValue); Internal.NativeFunctions.CallBuiltIn(842); }
/// <summary> /// Causes the object to instantly speak a translated string. /// (not an action, not blocked when uncommandable) /// - nStrRef: Reference of the string in the talk table /// - nTalkVolume: TALKVOLUME_* /// </summary> public static void SpeakStringByStrRef(int nStrRef, TalkVolumeType nTalkVolume) { Internal.NativeFunctions.StackPushInteger(nTalkVolume.InternalValue); Internal.NativeFunctions.StackPushInteger(nStrRef); Internal.NativeFunctions.CallBuiltIn(691); }