tommytom1 0 Posted January 21, 2023 Im trying to have a task succeed after assembling a ar-2 darter drone, wats the best way to accomplish this? Share this post Link to post Share on other sites
honger 113 Posted January 21, 2023 Probably not the best way but couldn't think of anything better. Have a trigger with following condition: !isNull (nearestObject [getPos player, "B_UAV_01_F"]) It will fire when nearestObject for player is the Darter. If you have more drones of the same type that are already assembled near player, this will trigger too soon. In trigger's On Activation field put whatever you need to change your task's status to completed. 1 Share this post Link to post Share on other sites
tommytom1 0 Posted January 21, 2023 Works great! thats good enough for me thanks😄 Share this post Link to post Share on other sites
Melody_Mike 130 Posted January 24, 2023 You can also solve it with an event handler, which may save performance every so slightly. player addEventHandler ["WeaponAssembled", { params ["_unit", "_staticWeapon"]; if (typeOf _staticWeapon == "B_UAV_01_F") then { _tskUAV setTaskState "Succeeded"; }; }]; See syntax examples Event Handlers and setTaskState. Note that I typed this on phone... Errors likely... Share this post Link to post Share on other sites