Jump to content
  • 0

Issue spawning custom crates at static AI position.


Cyrus

Question

I have a custom base set up at North West Airfield running Epoch 1.0.6.2 Chernarus. Im trying to spawn a custom loot crate called CustomLootCrate.sqf and it doesn't spawn as expected regardless if I am loading it via []exeVM " custom\CustomLootCrate.sqf"; in the init.sqf or using execVM "\z\addons\dayz_server\custom_crates\CustomLootCrate.sqf"; in the server_functions.sqf suggested elsewhere on these forums. I need some help from an experienced modder please. My CustomLootCrate.sqf is as follows: 

  Reveal hidden contents

 

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0
  On 1/16/2018 at 3:59 PM, Cyrus said:

I have a custom base set up at North West Airfield running Epoch 1.0.6.2 Chernarus. Im trying to spawn a custom loot crate called CustomLootCrate.sqf and it doesn't spawn as expected regardless if I am loading it via []exeVM " custom\CustomLootCrate.sqf"; in the init.sqf or using execVM "\z\addons\dayz_server\custom_crates\CustomLootCrate.sqf"; in the server_functions.sqf suggested elsewhere on these forums. I need some help from an experienced modder please. My CustomLootCrate.sqf is as follows: 

  Reveal hidden contents

 

Expand  
[4434.3223, 10632.069, -339]

  try change to

[4434.3223, 10632.069, 0]

 

 

Link to comment
Share on other sites

  • 0
  On 1/16/2018 at 4:15 PM, khalcifer said:
[4434.3223, 10632.069, -339]

  try change to

[4434.3223, 10632.069, 0]

 

 

Expand  

Thanks, I i have misinterpreted the Z-elevation as level below 0. Sea level being 0. I will change it to what you suggest and see if it works.

 

Edit :  I have reduced the item list for testing purposes and set the Z- coord to zero. Ammo box now spawns correctly. Thanks for the help. Ill go look for an updated list to correctly populate item arrays

Edit: I queried the trader_data table against the epoch database and built two raw CSV files containing weapons and items currently being used by the server. I will use this to compare what i have in my custom crate array. 

EDIT: If anyone is interested in manually searching the database for specific items this is a select query i wrote to find specific trader items in the game.

select tt.name, tt.trader, td.item, td.afile from trader_tids as tt
inner join traders_data as td
on tt.id = td.tid
where tt.name like "Sniper%"
order by td.item ASC

The word "Sniper%" is a wildcard search for any item starting 
with the word in the trader_tids table as is transmutable to 
other words such as "Assault%".

This is a typical result from the query.

name,trader,item,afile
'Sniper Rifle Ammo','144','[\"10Rnd_762x54_SVD\",1]','trade_items'

I have used Mysql Workbench for the database management. For a complete alpabetically ordered  list omit this line from the query "where tt.name like "Sniper%"

Edited by Cyrus
Adding info
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Discord

×
×
  • Create New...