TURCO_AR 5 Posted January 17, 2019 Hi!. I'm trying to spawn by a script an empty pick-up and a Opfor team of 4 guys. Then I want the team get inside the vehicle and move to some waypoints and made a S&D on the last waypoint. It's works fine upto the first waypoint, that brings me an error "_wp1 =_chief |#|addWaypoint [(getmarkerpos "waypoint1"), 0]; generic error in expression" _pickup = "O_G_Offroad_01_F" createVehicle getMarkerPos "start"; _pickup setDir 270; _guys = [getmarkerpos "start", OPFOR, ["O_G_Soldier_SL_F","O_G_Soldier_lite_F","O_G_Soldier_lite_F","O_G_Soldier_lite_F"],[],[],[],[],[],270] call BIS_fnc_spawnGroup; {_x assignAsCargo (_pickup); _x moveIncargo (_pickup);} foreach units _guys; _group_guys = leader _guys; leader _group_guys assignAsDriver _pickup; _chief = leader _group_guys; _wp1 =_chief addWaypoint [(getmarkerpos "waypoint1"), 0]; _wp1 setWaypointType "GETOUT"; _wp1 setWaypointSpeed "FULL"; _wp1 setWaypointBehaviour "COMBAT"; _wp2 =_chief addWaypoint [(getmarkerpos "waypoint2"), 0]; _wp2 setWaypointType "SAD"; _wp2 setWaypointSpeed "FULL"; _wp2 setWaypointBehaviour "COMBAT"; _wp2 setWaypointCombatMode "RED"; Anyone can help me to understand how to make it works? Thanks! Share this post Link to post Share on other sites
pierremgi 4739 Posted January 17, 2019 BIS_fnc_spawnGroup, and roll with waypoints on created group. (waypoints are for groups) Share this post Link to post Share on other sites
killzone_kid 1326 Posted January 17, 2019 4 hours ago, TURCO_AR said: brings me an error "_wp1 =_chief |#|addWaypoint [(getmarkerpos "waypoint1"), 0]; generic error in expression" _chief is supposed to be a group so change to group _chief When in doubt, check the docs https://community.bistudio.com/wiki/addWaypoint Share this post Link to post Share on other sites
TURCO_AR 5 Posted January 18, 2019 Many thanks @pierremgi and @killzone_kid now it works! Share this post Link to post Share on other sites
TURCO_AR 5 Posted January 19, 2019 Regarding to the script of above, now I want that the vehicle turn its ligths on. I have tried with: leader _group_guys action ["lightOn", _pickup]; but it flash the lights for a second (when it spawn) and when the vehicle moves to the first waypoint the lights turns off. How can it be done to keep the lights on? Share this post Link to post Share on other sites
pierremgi 4739 Posted January 19, 2019 Recurring topic for years. BI devs never admitted that something like this could be on the mission makers' hand. That belongs to the bunch of "time wasting" commands/functions immediately overwritten by the engine. This is definitely linked with the driver/group behaviour. In combat, no vehicle is lights on. That's an Arma rule! No matter if insurgents don't have NVG... Paroxysm is for sentinel mounting searchlights. 1 Share this post Link to post Share on other sites
mrcurry 470 Posted January 21, 2019 On 19/01/2019 at 9:39 PM, TURCO_AR said: Regarding to the script of above, now I want that the vehicle turn its ligths on. I have tried with: leader _group_guys action ["lightOn", _pickup]; but it flash the lights for a second (when it spawn) and when the vehicle moves to the first waypoint the lights turns off. How can it be done to keep the lights on? I think what @pierremgi means to say with his short rant is: set the groups behaviour to safe and you should be dandy. group _chief setBehaviour "SAFE"; The topic has been discussed before, give the forum a search (or 10) if you need more details. Share this post Link to post Share on other sites