191{
195
197 {
198 if (!
GetGame().IsDedicatedServer())
199 {
201 {
203 }
204 }
205 }
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
237 {
238 GetCompEM().SwitchOn();
239 }
240
242 {
243 GetCompEM().SwitchOff();
244 }
245
247 {
249 if(!m_InputActionMap)
250 {
255 }
256 }
257
259 {
261 {
264 }
265
267 }
268
270 {
274 }
275
277 {
279
280 if (!action)
281 {
283 return;
284 }
285
287 if (!ai)
288 {
290 return;
291 }
292
294
295 if (!action_array)
296 {
299 }
300
302 {
303 Debug.
ActionLog(action.ToString() +
" -> " + ai,
this.ToString() ,
"n/a",
"Add action" );
304 }
305 action_array.Insert(action);
306 }
307
309 {
311 ActionBase action = player.GetActionManager().GetAction(actionName);
314
315 if (action_array)
316 {
317 action_array.RemoveItem(action);
318 }
319 }
320}
321
323{
325 {
326 return false;
327 }
328};
329
331{
332 proto native void SwitchOn(bool onOff);
333 proto native bool IsOn();
334};
335
337{
338 proto native void SwitchOn(bool onOff);
339 proto native bool IsOn();
340 proto native void SetNextChannel();
341 proto native void SetPrevChannel();
342 proto native float GetTunedFrequency();
343 proto native void EnableBroadcast(bool state);
344 proto native void EnableReceive(bool state);
345 proto native bool IsBroadcasting();
346 proto native bool IsReceiving();
347 proto native int GetTunedFrequencyIndex();
348 proto native void SetFrequencyByIndex(int index);
349}
void ActionManagerBase(PlayerBase player)
map< typename, ref array< ActionBase_Basic > > TInputActionMap
void AddAction(typename actionName)
void RemoveAction(typename actionName)
void AdvancedCommunication()
TInputActionMap m_InputActionMap
void TurnOffTransmitter()
class PASBroadcaster extends AdvancedCommunication IsInventoryVisible
override void GetActions(typename action_input_type, out array< ActionBase_Basic > actions)
static ref map< typename, ref TInputActionMap > m_AdvComTypeActionsMap
static void LogError(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Prints debug message as error message.
static void ActionLog(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
static bool IsActionLogEnable()
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
proto native CGame GetGame()