203{
207
209 {
210 if (!
GetGame().IsDedicatedServer())
211 {
213 {
215 }
216 }
217 }
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
249 {
250 GetCompEM().SwitchOn();
251 }
252
254 {
255 GetCompEM().SwitchOff();
256 }
257
259 {
261 if(!m_InputActionMap)
262 {
267 }
268 }
269
271 {
273 {
276 }
277
279 }
280
282 {
286 }
287
289 {
291
292 if (!action)
293 {
295 return;
296 }
297
299 if (!ai)
300 {
302 return;
303 }
304
306
307 if (!action_array)
308 {
311 }
312
314 {
315 Debug.
ActionLog(action.ToString() +
" -> " + ai,
this.ToString() ,
"n/a",
"Add action" );
316 }
317 action_array.Insert(action);
318 }
319
321 {
323 ActionBase action = player.GetActionManager().GetAction(actionName);
326
327 if (action_array)
328 {
329 action_array.RemoveItem(action);
330 }
331 }
332}
333
335{
337 {
338 return false;
339 }
340};
341
343{
344 proto native void SwitchOn(bool onOff);
345 proto native bool IsOn();
346};
347
349{
350 proto native void SwitchOn(bool onOff);
351 proto native bool IsOn();
352 proto native void SetNextChannel();
353 proto native void SetPrevChannel();
354 proto native float GetTunedFrequency();
355 proto native void EnableBroadcast(bool state);
356 proto native void EnableReceive(bool state);
357 proto native bool IsBroadcasting();
358 proto native bool IsReceiving();
359 proto native int GetTunedFrequencyIndex();
360 proto native void SetFrequencyByIndex(int index);
361}
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()