DayZ Scripts
v1.21.156300 ยท Jun 20, 2023
Loading...
Searching...
No Matches
Mosin_Compensator.c
Go to the documentation of this file.
1
class
Mosin_Compensator
extends
ItemSuppressor
2
{
3
override
bool
CanPutAsAttachment
(
EntityAI
parent )
4
{
5
if
(!super.CanPutAsAttachment(parent)) {
return
false
;}
6
if
( parent.FindAttachmentBySlotName(
"suppressorImpro"
) == NULL && parent.FindAttachmentBySlotName(
"pistolMuzzle"
) == NULL )
7
{
8
return
true
;
9
}
10
return
false
;
11
}
12
}
EntityAI
Definition
Building.c:2
ItemSuppressor
Definition
Mosin_Compensator.c:2
ItemSuppressor::CanPutAsAttachment
override bool CanPutAsAttachment(EntityAI parent)
Definition
Mosin_Compensator.c:3