DayZ
Admirals GearStand Mod
Rlyeh 14 May, 2021 @ 10:26pm
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;
}
}
< >
Showing 1-7 of 7 comments
Admiral  [developer] 15 May, 2021 @ 7:51am 
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 16 May, 2021 @ 5:25pm 
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 18 May, 2021 @ 5:38am 
weird :P
Luzifer 1 Jun, 2021 @ 7:28am 
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  [developer] 6 Jun, 2021 @ 6:00am 
Originally posted by 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 30 Nov, 2021 @ 7:58pm 
Can we get a types.xml?
ArmyGirl3622 7 May, 2023 @ 9:54am 
how would you get clothing spawning on it?
< >
Showing 1-7 of 7 comments
Per page: 1530 50