lawman_actual 24 Posted November 18, 2017 Really don't know why I'm struggling with this; i've done it plenty of times before. _wayPoint_Alpha_wp3 setWaypointStatements ["true", " (units group_mainyu1) orderGetIn false; {unassignVehicle _x;} forEach (units group_mainyu1); qrf1Dismounted = true; {commandStop _x;} forEach (units group_mainyu1); {_x disabeAI ""FSM"";} forEach (units group_mainyu1); " ]; I'm just trying to disable certain AI aspects when a group dismounts from a vehicle. I keep getting error messages "missing ;" regarding the following line: {_x disabeAI ""FSM"";} forEach (units group_mainyu1); Usually this happens because I've used the wrong thing when referring to the string. I.e. i put "thing" instead of ""thing"" or 'thing'. Truthfully I don't 100% understand when to use "" or ' within an existing string, but usually i just try one or the other until it works. Might be useful if someone could explain to me what the rules actually are. Cheers, Law Share this post Link to post Share on other sites
Lucullus 71 Posted November 18, 2017 You missed an "L" at disableAI. If you have code in quotation marks that needs strings, then you have to mark the strings with double quotation marks (""FSM"") or this one ('FSM'). That marks string in a string. Share this post Link to post Share on other sites
lawman_actual 24 Posted November 18, 2017 Yeah that would do it. I stared at that for ages and couldn't spot that Guess that's how it goes sometimes! Share this post Link to post Share on other sites