Jump to content

Forums Announcement

Read-Only Mode for Announcements & Changelogs

Dear Survivors, we'd like to inform you that this forum will transition to read-only mode. From now on, it will serve exclusively as a platform for official announcements and changelogs.

For all community discussions, debates, and engagement, we encourage you to join us on our social media platforms: Discord, Twitter/X, Facebook.

Thank you for being a valued part of our community. We look forward to connecting with you on our other channels!

Stay safe out there,
Your DayZ Team

Sign in to follow this  
CybrOptix

Spawnabletypes Inheritance Question

Recommended Posts

From my understanding, spawnabletypes is essentially a library of objects (and their associated attachments and/or loot) that can be spawned into DayZ.

I'm also aware you can create custom loadouts of spawnabletypes objects which gets defined within spawnabletypes (e.g. fully complete vehicles with all of its parts & loaded with loot).

Is it possible to create a custom spawnabletype object if it inherits its properties from a parent object. For example, say I wanted to create a Christmas Car (which was nothing more than a green Ada filled with Christmas present loot). I don't want all of the regular (green) Ada's to spawn in with Xmas loot...just the custom Christmas Ada's.

I know that when you create custom events, you need to prefix the event name with (what i'm presuming) is the spawnabletype object name (e.g. VehicleHatchback02Christmas > which references the default VehicleHatchback02 (Ada) object).

Which leads me to wonder, if its possible actually create a custom VehicleHatchback02Christmas object within spawnabletypes that inherits all of the VehicleHatchback02 properties (but could be customised to contain the Christmas loot), and could be referenced by the events and eventspawns.

Share this post


Link to post
Share on other sites
6 hours ago, CybrOptix said:

From my understanding, spawnabletypes is essentially a library of objects (and their associated attachments and/or loot) that can be spawned into DayZ.

I'm also aware you can create custom loadouts of spawnabletypes objects which gets defined within spawnabletypes (e.g. fully complete vehicles with all of its parts & loaded with loot).

Is it possible to create a custom spawnabletype object if it inherits its properties from a parent object. For example, say I wanted to create a Christmas Car (which was nothing more than a green Ada filled with Christmas present loot). I don't want all of the regular (green) Ada's to spawn in with Xmas loot...just the custom Christmas Ada's.

I know that when you create custom events, you need to prefix the event name with (what i'm presuming) is the spawnabletype object name (e.g. VehicleHatchback02Christmas > which references the default VehicleHatchback02 (Ada) object).

Which leads me to wonder, if its possible actually create a custom VehicleHatchback02Christmas object within spawnabletypes that inherits all of the VehicleHatchback02 properties (but could be customised to contain the Christmas loot), and could be referenced by the events and eventspawns.

1st you can't. Logic of that system is simple, you're working NOT with Name of the Object, BUT WOTHT THE CLASSNAME OF THE OBJECT. That means if you don't made your own class of VehicleHatchback02Christmas - you will not able to use that name in the spawnabletypes.

But you can solve it by modification of configs and creating of own class (it's required the addon for clients and your server), don't give up it's the same stuff that onlyeans that it shall be onstalled at client and server also.

Also I shall point you that spawnabletypes shall be unique (no duplicates), because in other case your new instances of class will override previous definition of the class (inside spawnabletypes).

Have fun.

Share this post


Link to post
Share on other sites
Sign in to follow this  

×