DayZ
Admirals GearStand Mod
Rlyeh 2021 年 5 月 14 日 下午 10:26
placement
ur placement-script isn't working :(
this should solve the problem :

GS_Gearstand.c
class GS_Gearstand extends Container_Base
{
override void SetActions()
{
super.SetActions();

AddAction(ActionTogglePlaceObject);
AddAction(ActionPlaceObject);
}

override bool CanPutInCargo( EntityAI parent )
{
if( !super.CanPutInCargo(parent) ) {return false;}
return IsInvEmpty();
}

override bool CanPutIntoHands(EntityAI parent)
{
if( !super.CanPutIntoHands(parent) ) {return false;}
return IsInvEmpty();
}

override bool IsDeployable()
{
return true;
}
}

class GS_Hatstand extends Container_Base
{
override void SetActions()
{
super.SetActions();

AddAction(ActionTogglePlaceObject);
AddAction(ActionPlaceObject);
}

override bool CanPutInCargo( EntityAI parent )
{
if( !super.CanPutInCargo(parent) ) {return false;}
return IsInvEmpty();
}

override bool CanPutIntoHands(EntityAI parent)
{
if( !super.CanPutIntoHands(parent) ) {return false;}
return IsInvEmpty();
}

override bool IsDeployable()
{
return true;
}
}
< >
正在显示第 1 - 7 条,共 7 条留言
Admiral  [开发者] 2021 年 5 月 15 日 上午 7:51 
huh strange ddi it just not deploy or what was thrown out as I have it running on another server and they seem to deploy fine
Wilma Fingerdoo 2021 年 5 月 16 日 下午 5:25 
placement works fine for me on my server must be a conflict with another mod id imagine or your trying to place inside a safezone or something
Rlyeh 2021 年 5 月 18 日 上午 5:38 
weird :P
Luzifer 2021 年 6 月 1 日 上午 7:28 
So the Placement works well and everything just disappears after a few restarts or hours. can it be that this mod does not work with expansion mod that means disappear because of that
Admiral  [开发者] 2021 年 6 月 6 日 上午 6:00 
引用自 Luzifer
So the Placement works well and everything just disappears after a few restarts or hours. can it be that this mod does not work with expansion mod that means disappear because of that
you will probably need to set this item to not despawn in the loot table
OGSlybranman 2021 年 11 月 30 日 下午 7:58 
Can we get a types.xml?
ArmyGirl3622 2023 年 5 月 7 日 上午 9:54 
how would you get clothing spawning on it?
< >
正在显示第 1 - 7 条,共 7 条留言
每页显示数: 1530 50