[DISCUSSION] DayZ Origins-like DiscoBot

This still needs a lot of work.

First of all:

Code:
if (!_isDead) then {
_medical = _newUnit call player_sumMedical;
_newBackpack = unitBackpack _newUnit;
if(!(dayz_onBack == "")) then {
_playerGear = [_weapons,_magazines,dayz_onBack];}
else {_playerGear = [_weapons,_magazines];};
_playerBackp = [typeOf _newBackpack,getWeaponCargo _newBackpack,getMagazineCargo _newBackpack];

dayz_onBack can't be "injected" like that since it's a variable. You will get a HiveExt error and the bot's gear will not sync with the db.
This is somehow tricky cause I still can't figure it out how to write the carry slot to the DB.

Code:
_playerGear = [_weapons,_magazines]

This will work fine, but you will lose the item in the Carry Slot.

Code:
diag_log format["BOTLOG spawn disco_playerMorph: %1 (%2) %3", _playerObj,_playerID,_characterID];
      [_playerObj,_playerUID,_characterID,30] spawn disco_playerMorph;

_playerID needs to be changed to _playerUID if you wan't to see player names in RPT instead of "any".
 
Ok - I'm out of ideas.
I have no clue how to fetch the weapon class name from dayz_onBack properly.
Everything I've tried returns "any", "[]", "null" or simply nothing.
If anyone has an idea about this, I would be grateful.

Wysłane z mojego HTC Desire S przy użyciu Tapatalk
 
Ok - I'm out of ideas.
I have no clue how to fetch the weapon class name from dayz_onBack properly.
Everything I've tried returns "any", "[]", "null" or simply nothing.
If anyone has an idea about this, I would be grateful.

Wysłane z mojego HTC Desire S przy użyciu Tapatalk

I know about the HIVE error problem, but this doesn't matter, and this is the only way I found to keep player's onBack loot after reconnecting.
So it's just a workaround.
I can't get the dayz_onBack var working properly too. :O
 
This is not a workaround lol :eek:
This is simply an error with the Hive request that prevents the script to sync the gear after the bot despawns, thus ending up with the initial inventory column in the DB.
 
whenever i disconnect even when iam not in combat the bot gets replaced so something is wrong i followed all the directions any ideas iam using this for overwatch 0.2.5 update
 
Back
Top