Hiddens 5 Posted August 25, 2017 Hello, Hmal = createVehicle ["Land_PlasticCase_01_small_F","M1" call BIS_fnc_randomPosTrigger, [], 0, "CAN_COLLIDE"]; _hbatimentPos = nearestBuilding getpos Hmal; _hBatiment = nearestBuilding _hbatimentPos; Hmal setPosATL (_hBatiment buildingPos 1); [[Hmal, ["= Collecter =", "if (isServer) then { deleteVehicle Hmal; }; if (hasInterface) then { deleteVehicle Hmal; }" ]],"addAction",true,true] call BIS_fnc_MP; During my mission, i create object as intel. but my problem is that "DeleteVehicle" don't work in multiplayers. without and with condition "IF". Help-me plz. I try create a intel objectif. i need that players collect this box and that my server delete this box. sorry for my English. i am not English man. Thanz you Share this post Link to post Share on other sites
Grumpy Old Man 3546 Posted August 25, 2017 deleteVehicle is a global command and usually doesn't need an isServer check. Don't apologize for your english, it's decent. Are you sure you're not running this script multiple times so Hmal is a different object everytime? For a proper addAction usage you could use the parameters being passed into the addAction code and replace BIS_fnc_MP with remoteExec: Hmal = createVehicle ["Land_PlasticCase_01_small_F","M1" call BIS_fnc_randomPosTrigger, [], 0, "CAN_COLLIDE"]; _hbatimentPos = nearestBuilding getpos Hmal; _hBatiment = nearestBuilding _hbatimentPos; Hmal setPosATL (_hBatiment buildingPos 1); [Hmal, ["= Collecter =","deleteVehicle (_this select 0)"]] remoteExec ["addAction",0]; Should work just fine. Cheers Share this post Link to post Share on other sites