alleycat 28 Posted February 29, 2016 Placed an UGV as a blufor UAV operator with a script, but it still has to be "hacked" to be accessible. Why, the unit and drone are already blufor. _veh = createVehicle ["B_UGV_01_rcws_F", getpos _caller, [], 5, "NONE"]; Share this post Link to post Share on other sites
fn_Quiksilver 1636 Posted February 29, 2016 The 'Hack UAV' action is just a way of saying 'spawn friendly AI crew inside this vehicle' createVehicle doesnt create the crew. something like this would spawn the crew as well: createVehicleCrew (createVehicle ["B_UGV_01_rcws_F", getpos _caller, [], 5, "NONE"]); Share this post Link to post Share on other sites
alleycat 28 Posted February 29, 2016 Thanks that worked perfectly Share this post Link to post Share on other sites
alleycat 28 Posted March 4, 2016 I would like to add a new question: _vehicle = createVehicleCrew (createVehicle ["I_UAV_02_CAS_F",_pos, [], 1, "NONE"]);_vehicle flyinheight 300; Produces error about _vehicle being unknown. Share this post Link to post Share on other sites
haleks 8212 Posted March 4, 2016 I would like to add a new question: _vehicle = createVehicleCrew (createVehicle ["I_UAV_02_CAS_F",_pos, [], 1, "NONE"]);_vehicle flyinheight 300; Produces error about _vehicle being unknown. That's because createVehicleCrew doesn't return anything; create your drone before using createVehicleCrew, so you can refer to it since createVehicle will return the created object. Share this post Link to post Share on other sites
fn_Quiksilver 1636 Posted March 5, 2016 I would like to add a new question: _vehicle = createVehicleCrew (createVehicle ["I_UAV_02_CAS_F",_pos, [], 1, "NONE"]);_vehicle flyinheight 300; Produces error about _vehicle being unknown. in this case, some format like this is more appropriate, when you want to store the object in a variable (_vehicle) for future reference. _vehicle = createVehicle ["I_UAV_02_CAS_F",_pos,[],1,"NONE"]; createVehicleCrew _vehicle; _vehicle flyInHeight 300; Share this post Link to post Share on other sites
alleycat 28 Posted March 5, 2016 Thanks, I should be more attentive to return vaues. Share this post Link to post Share on other sites