Insert new object into the database?

McKeighan

Well-Known Member
Ok... So let's pretend that I want to "create" a new object in the database that can store items - like a tent, or a vehicle.....

Example - the ammo crates that you can spawn in..... I was thinking of trying to make it so that if you combine 3 logs and some fencing together using a toolbox, you could create a crate at your position (like pitching a tent).

I see that dayz+ does this kind of thing all the time with the deployable items, like the camo netting and cement barriers, etc.

But how would you set an object to not only deploy, but become useable as storage in the database? I've attempted to insert an object thru an SQF before, like CrateStorage, and define it in the database as a deployable object..... But it never works quite right. Most often, it deploys in game, but never shows in the database, so on a server restart, the crate is gone.

Any thoughts or hints or ideas would be helpful :)

Thanks.
 
Back
Top