Sebas 4 Report post Posted January 28 Hi there, is there a script for the duct tape of the quad pack going straight into my inventory? Share this post Link to post Share on other sites
MGTDB 956 Report post Posted January 28 _this = nearestObject [player, "Exile_Bike_QuadBike_Black"];//or whatever vehicle class deletevehicle _this; player addItem "Exile_Item_DuctTape"; Share this post Link to post Share on other sites
Sebas 4 Report post Posted January 29 Thank you and I place it at the end of config.sqf of the deployvehicle? Share this post Link to post Share on other sites
Sebas 4 Report post Posted February 4 On 1/28/2019 at 10:10 AM, MGTDB said: _this = nearestObject [player, "Exile_Bike_QuadBike_Black"];//or whatever vehicle class deletevehicle _this; player addItem "Exile_Item_DuctTape"; MGTDB? Share this post Link to post Share on other sites
MGTDB 956 Report post Posted February 4 You would need to add that as an action in mission config where target = the vehicle you want to pack class PackQuad: ExileAbstractAction { title = "Pack Quadbike"; condition = "((typeOf ExileClientInteractionObject) isEqualTo 'Exile_Bike_QuadBike_Black')"; action = "execVM 'thepathtoyourpackingfile.sqf';"; }; 1 Share this post Link to post Share on other sites
Sebas 4 Report post Posted February 4 (edited) class PackDeployedVehicle: ExileAbstractAction { title = "Pack Vehicle"; condition = "call ExAd_XM8_DV_fnc_canPack"; action = _this = nearestObject [player, "Exile_Bike_QuadBike_Black"];//or whatever vehicle class deletevehicle _this; player addItem "Exile_Item_DuctTape"; }; Edited February 4 by Sebas Share this post Link to post Share on other sites
Sebas 4 Report post Posted February 6 Are you the exact lines that I must add? Share this post Link to post Share on other sites
kuplion 1785 Report post Posted February 7 On 2/4/2019 at 7:06 PM, Sebas said: class PackDeployedVehicle: ExileAbstractAction { title = "Pack Vehicle"; condition = "call ExAd_XM8_DV_fnc_canPack"; action = _this = nearestObject [player, "Exile_Bike_QuadBike_Black"];//or whatever vehicle class deletevehicle _this; player addItem "Exile_Item_DuctTape"; }; 18 hours ago, Sebas said: Are you the exact lines that I must add? That's not what DB posted; you've just added a random additional line to the interaction for ExAd and completely ignored what DB posted. Share this post Link to post Share on other sites
Sebas 4 Report post Posted February 7 I did exactly what he told me. Add the lines to Action. I just want to confirm that these as his. If not help me to make the order properly please. Share this post Link to post Share on other sites
MGTDB 956 Report post Posted February 7 Ok, how do the players spawn the quad, is it from Exad or just an addAction? If you copy your spawn quad code into this thread, then we can check any variables that are set etc and can tailor the code specifically for you. Share this post Link to post Share on other sites