Custom spawn location w/ Custom inventory

Daniel Kagarise

New Member
So ive been fiddling with this for awhile, I added a few lines for world space hoping they would work however It isnt working at all now, below is the sample code i tweaked:


// Check custom inventory for new characters
if (_model == "") then {
_key = format["CHILD:999:select replace(cl.`inventory`, '""', '""""') inventory, replace(cl.`backpack`, '""', '""""') backpack, replace(coalesce(cl.`model`, 'Survivor2_DZ'), '""', '""""') model, replace(coalesce(cl.`worldspace`, '""', '""""') worldspace from `cust_loadout` cl join `cust_loadout_profile` clp on clp.`cust_loadout_id` = cl.`id` where clp.`unique_id` = ?:[%1]:",_playerID];
_data = "HiveEXT" callExtension _key;

//Process result
_result = call compile format ["%1", _data];
_status = _result select 0;

if (_status == "CustomStreamStart") then {
if ((_result select 1) > 0) then {
_data = "HiveEXT" callExtension _key;
_result = call compile format ["%1", _data];
_inventory = call compile (_result select 0);
_backpack = call compile (_result select 1);
_model = call compile (_result select 2);
_worldspace = call compile (_result select 3);
};
};
};

Anyone got any idea why its not working?
 
Back
Top