1. This forum is ARCHIVED! Visit the new Cloud Sixteen forums, codename Eden, at https://eden.cloudsixteen.com. These forums will remain archived for a few months before being closed down, so try to encourage plugin developers to begin moving their content across to the new forums.
Dismiss Notice
Hi Guest, you need a Steam account to register and post on these forums. Login with Steam at the top of the forums to get started!
Dismiss Notice
Hi Guest, do you want to buy HL2RP or another Clockwork schema? Visit the Cloud Sixteen Store to get started!

Other Accessory base doesn't work?

Discussion in 'Development' started by Kracia-B, Feb 9, 2018.

  1. Recently I've been trying to experiment with the built in accessory base. I, however, have not been having any luck whatsoever. If someone could explain to me how the accessory base works or how to use it would be much appreciated.

    I do however feel that it doesn't work, unless I've been scripting my items wrongly.

    Thanks in advance.
     
  2. WestCoastKillers

    WestCoastKillers all links to the manifesto Clockwork Customer

    could you post what you're trying to do? the item code I mean.
     
  3. of-course,

    local Clockwork = Clockwork;

    local ITEM = Clockwork.item:New("accessory_base");
    ITEM.name = "Test Helmet";
    ITEM.model = "models/props_borealis/bluebarrel001.mdl";
    ITEM.weight = 1;
    ITEM.useText = "Wear";
    ITEM.category = "Accessories";
    ITEM.description = "An accessory you can wear.";
    ITEM.isAttachment = true;
    ITEM.attachmentBone = "ValveBiped.Bip01_Head1";
    ITEM.attachmentOffsetAngles = Angle(88.785, -1.889, -13.255);
    ITEM.attachmentOffsetVector = Vector(-2.266, -1.163, -0.091);

    Clockwork.item:Register(ITEM);

    and the latter

    local ITEM = Clockwork.item:New("accessory_base");
    ITEM.name = "Test Helmet";
    ITEM.model = "models/props_borealis/bluebarrel001.mdl";
    ITEM.weight = 1;
    ITEM.useText = "Wear";
    ITEM.category = "Accessories";
    ITEM.description = "An accessory you can wear.";
    ITEM.isAttachment = true;
    ITEM.attachmentBone = "ValveBiped.Bip01_Head1";
    ITEM.attachmentOffsetAngles = Angle(88.785, -1.889, -13.255);
    ITEM.attachmentOffsetVector = Vector(-2.266, -1.163, -0.091);

    ITEM:Register();
     
    Last edited: Feb 9, 2018

Previous Readers (Total: 0)