Code on Github - requires ws_fnc
What does it do?
- It adds an action to any object which when prompted creates a laptop at the executing unit's position and displays a countdown.
- After the countdown any unit can collect the data from the Laptop. A message will show who collected it and who's carrying the Data. A marker will indicate the carrier's position.
- Should the carrier die a message will tell as much and the marker will stop moving. The data has to be collected again from the corpse.
- Copy the code into file named "ws_transferData.sqf" in your mission folder.
- Add this to the main object's init:
The second value is the time in s for the transfer to finish. A value of 0 makes it instantly.
Code: Select all
[this,120] execVM "ws_transferData.sqf";
To check if a specific unit is carrying the Data use
Code: Select all
(unitName getVariable ["ws_transferData_dataCarrier",false])
Code: Select all
this && ({(_x getVariable ["ws_transferData_dataCarrier",false])} count thisTrigger > 0)
Code: Select all
ws_transferData_transferDone
Just like in a coop (everyone will see the messages). Currently there's no way to set it up to display stuff only for one side but I'll add that in the future.