0 Members and 1 Guest are viewing this topic.
this addeventhandler["killed", {(_this + weapons (_this select 0)+magazines (_this select 0)) exec "playerdead.sqs"}]
actually the code you posted only returns the units weapon loadout at death, i need to capture the unit loadout at the start of the mission and then pass that onto the killed eventhandler script
Array1 = Array1 + [ [this,weapons this,magazines this]]
_unit = _this select 0_n = 0#FindUnit_current = Array1 select _n_n = _n + 1? (_current select 0) != _unit : goto "FindUnit"_weapons = _current select 1_magazines = _current select 2; whatever you want after this
firstweapons=format ["%1",weapons this] ; firstmags = format ["%1",magazines this] ; this addeventhandler["killed", {(_this + [firstweapons] + [firstmags]) exec "playerdead.sqs"}]