Skip to content

StaticItems ​

Description ​

StaticItems creates configured entities and attachments when the module initializes. It can place props and other compatible entities at exact world coordinates. Entities treated as players by the game are created with damage disabled.

Configuration ​

Default configuration ​

StaticItems.json
json
{
    "m_Enable": 0,
    "m_Items": [
        {
            "m_Class": "SurvivorM_Elias",
            "m_Attachments": [
                "AC_TacticalGloves_Admin",
                "AC_TacticalShirt_Admin",
                "AC_CargoPants_Admin",
                "AC_MilitaryBeret_Admin",
                "AC_MilitaryBoots_Admin"
            ],
            "m_Position": {
                "m_X": 4745.825195,
                "m_Y": 339.002350,
                "m_Z":  10369.158203
            },
            "m_Orientation": {
                "m_Yaw": 60.0,
                "m_Pitch": 0.0,
                "m_Roll": 0.0
            }
        }
    ]
}

Options ​

OptionTypeDescription
m_EnableboolWith 1, enables the module. With 0, disables it.
m_Itemsarray<object>Objects to create.

m_Items[] ​

OptionTypeDescription
m_ClassstringExact entity class.
m_Attachmentsarray<string>Item classes created inside the entity.
m_PositionobjectExact world coordinates.
m_OrientationobjectObject rotation.

m_Items[].m_Position ​

OptionTypeDescription
m_XfloatWorld X coordinate in metres.
m_YfloatElevation in metres.
m_ZfloatWorld Z coordinate in metres.

m_Items[].m_Orientation ​

OptionTypeDescription
m_YawfloatYaw in degrees.
m_PitchfloatPitch in degrees.
m_RollfloatRoll in degrees.

Use the following class in m_Items[].m_Class to place a prop at the configured coordinates.

ClassPurpose
AC_WorkbenchDecorative Workbench model.

Released under the MIT License.