Page MenuHomeFeedback Tracker

Scripting - Chat Script Commands Not Working for Civilian Side (i.e. groupChat)
Closed, ResolvedPublic

Description

I have recently been working on a project that requires both WEST and CIV sides and I need to display groupChat messages for information. When I ran <player groupChat "Testing";> on the West player, the message was displayed but when I passed the exact same command on a civilian player, the message did not display. I tried running <hint "Testing";> on the civilian player after <player groupChat "Testing";> and the hint showed up just fine but the chat message did not show. I thought it may have been a mistake in my scripting so I created a blank mission with one playable WEST unit and one playable CIVILIAN player. I put the init.sqf in the mission folder with one line of code, <player groupChat "Testing";>. I then copied and pasted the mission to my MPMissions folder and started a multiplayer match, first playing as the WEST character. As soon as the map started, I saw the message in the chat, "Testing". Then I tried again with the CIVILIAN character and nothing showed up. The same script ran on both so there is a problem with the CIVILIAN side and groupChat. I also tried with globalChat and that did not display as well.

Thank you for your time and I hope this will be resolved soon, as for the meantime, I will overstep the chat commands and use an alternative.

Details

Legacy ID
541642812
Severity
Text
Resolution
No Bug
Reproducibility
Always
Category
Scripting
Steps To Reproduce

Create a blank mission with one playable WEST unit and one playable CIVILIAN player. Put an init.sqf file in the mission folder with one line of code, <player groupChat "Testing";>. Copy the mission to MPMissions folder and start a multiplayer match (I used LAN), first play as the WEST character then try again with the CIVILIAN character. Note that the same command is running on both units. If you want, you can also add <hint "Testing";> and then that should display for both.

Additional Information

PLEASE NOTE: if you do not add a delay to the init.sqf, the chat message will appear the first time the Map is displayed. If you press continue, the message will disappear from both WEST and CIVILIAN characters.

Event Timeline

marinesharp edited Additional Information. (Show Details)
marinesharp set Category to Scripting.
marinesharp set Reproducibility to Always.
marinesharp set Severity to Text.
marinesharp set Resolution to No Bug.
marinesharp set Legacy ID to 541642812.May 7 2016, 1:33 PM

confirm, realised it too (using sidechat)

Working as intended.

You expect a radio message to show up on a person who has no radio?
Give them a radio, and it works fine.

Add this to the civilian's init fields:
this addItem "itemRadio"; this assignItem "itemRadio";

I overlooked the requirement of the radio, thank you very much MulleDk19

MadDogX added a subscriber: MadDogX.May 7 2016, 1:33 PM

Non-issue. Closing.