hi all. I made some small SQS script for my mission. In this mission (idea has been taken from chernarus life) you can pick up suitcase with random items (script for random items I dont write here). Now is here the problem. In Init of suitcase I write:
this addAction["(Pickup)", "PickUp.sqs", nil, 6, True, True, "", "(_target distance _this) < 2"];
PickUp.sqs:_OBJ = _this select 0;
_TARGET = _this select 1;
_ID = _this select 2;
_OBJ removeAction _ID;
player playmove "AmovPercMstpSnonWnonDnon_AinvPknlMstpSnonWnonDnon"
~1.5
DeleteVehicle _OBJ
exit
The problem is, that if player press action 'pickup', the action will be deleted but only by this player, who pressed the button. While he go down and takes suitcase, during 1.5 seconds I can use this action too
Do you know how to delete here action from this suitcase for all players if one player press it?
Please help, it's very important!