181{
185
187 {
188 if (!
GetGame().IsDedicatedServer())
189 {
191 {
193 }
194 }
195 }
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
227 {
228 GetCompEM().SwitchOn();
229 }
230
232 {
233 GetCompEM().SwitchOff();
234 }
235
237 {
239 if(!m_InputActionMap)
240 {
245 }
246 }
247
249 {
251 {
254 }
255
257 }
258
260 {
264 }
265
267 {
269
270 if (!action)
271 {
273 return;
274 }
275
277 if (!ai)
278 {
280 return;
281 }
282
284
285 if (!action_array)
286 {
289 }
290
292 {
293 Debug.
ActionLog(action.ToString() +
" -> " + ai,
this.ToString() ,
"n/a",
"Add action" );
294 }
295 action_array.Insert(action);
296 }
297
299 {
301 ActionBase action = player.GetActionManager().GetAction(actionName);
304
305 if (action_array)
306 {
307 action_array.RemoveItem(action);
308 }
309 }
310}
311
313{
315 {
316 return false;
317 }
318};
319
321{
322 proto native void SwitchOn(bool onOff);
323 proto native bool IsOn();
324};
325
327{
328 proto native void SwitchOn(bool onOff);
329 proto native bool IsOn();
330 proto native void SetNextChannel();
331 proto native void SetPrevChannel();
332 proto native float GetTunedFrequency();
333 proto native void EnableBroadcast(bool state);
334 proto native void EnableReceive(bool state);
335 proto native bool IsBroadcasting();
336 proto native bool IsReceiving();
337 proto native int GetTunedFrequencyIndex();
338 proto native void SetFrequencyByIndex(int index);
339}
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()