Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
m4_rishndgrd.c
Go to the documentation of this file.
1 class M4_RISHndgrd extends Inventory_Base
2 {
3  override bool CanDetachAttachment (EntityAI parent)
4  {
5  if ( Weapon_Base.Cast(parent) && parent.FindAttachmentBySlotName("weaponFlashlight") )
6  {
7  return false;
8  }
9  return true;
10  }
11 }
Weapon_Base
shorthand
Definition: boltactionrifle_base.c:5
Inventory_Base
Definition: barbedbaseballbat.c:1
EntityAI
Definition: building.c:5