214{
218
220 {
221 if (!
GetGame().IsDedicatedServer())
222 {
224 {
226 }
227 }
228 }
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
260 {
261 GetCompEM().SwitchOn();
262 }
263
265 {
266 GetCompEM().SwitchOff();
267 }
268
270 {
272 if(!m_InputActionMap)
273 {
278 }
279 }
280
282 {
284 {
287 }
288
290 }
291
293 {
297 }
298
300 {
302
303 if (!action)
304 {
306 return;
307 }
308
310 if (!ai)
311 {
313 return;
314 }
315
317
318 if (!action_array)
319 {
322 }
323
325 {
326 Debug.
ActionLog(action.ToString() +
" -> " + ai,
this.ToString() ,
"n/a",
"Add action" );
327 }
328 action_array.Insert(action);
329 }
330
332 {
334 ActionBase action = player.GetActionManager().GetAction(actionName);
337
338 if (action_array)
339 {
340 action_array.RemoveItem(action);
341 }
342 }
343}
344
346{
348 {
349 return false;
350 }
351};
352
354{
355 proto native void SwitchOn(bool onOff);
356 proto native bool IsOn();
357};
358
360{
361 proto native void SwitchOn(bool onOff);
362 proto native bool IsOn();
363 proto native void SetNextChannel();
364 proto native void SetPrevChannel();
365 proto native float GetTunedFrequency();
366 proto native void EnableBroadcast(bool state);
367 proto native void EnableReceive(bool state);
368 proto native bool IsBroadcasting();
369 proto native bool IsReceiving();
370 proto native int GetTunedFrequencyIndex();
371 proto native void SetFrequencyByIndex(int index);
372}
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()