TiGGa 0 Posted March 15, 2007 Since 1.05 BIS has added the command addVehicle. Unfortunately the Biki doesn't tell you what it actually does. Does anyone have an idea? Share this post Link to post Share on other sites
Skaven 0 Posted March 15, 2007 From ofpec comref that you can find here: http://www.ofpec.com/COMREF/letterA.php#addVehicle group addVehicle vehicle Operand types: group: Group vehicle: Object Type of returned value: Nothing Description: Adds the specified vehicle to the specified group. Share this post Link to post Share on other sites
TiGGa 0 Posted March 15, 2007 Thx for the reply. So does it add all units inside the vehicle to the group? Because adding an empty vehicle doesn't make sense at all. Share this post Link to post Share on other sites
Skaven 0 Posted March 15, 2007 Yes it does, but not the units assigned as cargo unless they are already grouped with the units from the vehicle. Share this post Link to post Share on other sites
fasad 1 Posted November 21, 2008 I've been testing use of this command without seeing any apparent effects. The above description by Skaven certainly doesn't work in 1.14. Does anybody got any idea what this command actually does? Share this post Link to post Share on other sites
Master85 1 Posted November 21, 2008 I think the command is working correctly. Example: Build a group of soldiers, give the leader a move-waypoint to a place far away and place an empty truck near the group. ->The group will move by foot to the waypoint. Now the same scenario again - but add the truck by the addvehicle-command to the group. ->Now the group will use the truck to reach the waypoint. I think it depends on the distance to the following waypoint whether a added truck will be used or not - looks like the truck is used if the distance between leader and the next waypoint > 200 m. It's possible that an added truck isn't used at first because the next waypoint is too near; but after reaching the waypoint and realizing that the following waypoint is too far away (> 200m) the soldiers run back, board the vehicle and move to the waypoint. Master85 Edit:typo  Share this post Link to post Share on other sites
VictorFarbau 0 Posted November 21, 2008 @Master85, I too did a test as it sounded useful and I queried the "assignedVehicle" of the group members. It was "<NULL-object> before but also after adding a vehicle using addVehicle. So maybe it works but not from a script perspective. Cheers, VictorFarbau Share this post Link to post Share on other sites
Master85 1 Posted November 21, 2008 @ VictorFarbau I think the addvehicle-command only shows the ai-leader that he may/should use this vehicle (and I think there's no way to check for an added vehicle). An ai-leader will then automatically assign his units to the vehicle and let them board it (only if he thinks that's necessary). Master85 Share this post Link to post Share on other sites
raedor 8 Posted November 21, 2008 @Master85, I too did a test as it sounded useful and I queried the "assignedVehicle" of the group members. It was "<NULL-object> before but also after adding a vehicle using addVehicle. So maybe it works but not from a script perspective.Cheers, VictorFarbau I guess assignedVehicle is the counterpart to assignAsX (x = driver, gunner, commander, cargo). Share this post Link to post Share on other sites
fasad 1 Posted November 22, 2008 Thanks for the info Master85, I've updated the BI wiki description and added some notes. This command seems only to be of use on AI led groups. The AI leader assigns his group to vehicles (which gives values to assignedVehicle & assignedVehicleRole). Share this post Link to post Share on other sites
VictorFarbau 0 Posted November 22, 2008 @raedor, yes, it was pure speculation that the vehicle might pop up as "assignedVehicle" and it didn't work out. So this function is really only useful if you leave the rest to the AI system. VictorFarbau Share this post Link to post Share on other sites