Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_VehicleChatChannel.c
Go to the documentation of this file.
2{
3 override bool IsAvailable(BaseChatComponent sender)
4 {
5 PlayerController playerController = PlayerController.Cast(sender.GetOwner());
6 if (!playerController)
7 return super.IsAvailable(sender);
8
9 ChimeraCharacter character = ChimeraCharacter.Cast(playerController.GetControlledEntity());
10
11 return character && character.IsInVehicle();
12 }
13};
event bool IsAvailable(BaseChatComponent sender)
Returns true if the message can be sent to this channel.