Dayz Explorer  1.24.157551 (v105080)
Dayz Code Explorer by Zeroy
ak_railhndgrd.c
Go to the documentation of this file.
1 class AK_RailHndgrd extends Inventory_Base
2 {
3  override bool CanDetachAttachment (EntityAI parent)
4  {
5  if ( Weapon_Base.Cast(parent) && parent.FindAttachmentBySlotName("weaponFlashlight")/*.IsKindOf("UniversalLight")*/ )
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