Jump to content
Sign in to follow this  
bobby budnick

Help with short moveInDriver script not working / "Error Missing ;" in arma3.rpt

Recommended Posts

This is the script:

sleep 20;
TEST_GROUP = createGroup east;
WORKINGVEHICLE = CreateVehicle ["B_Hunter_HMG_F", getPos player, [], 0, "FLY"];
sleep 1;
"O_Soldier_F" createUnit [getPos player, TEST_GROUP, "DRIVER = this"];
DRIVER moveInDriver WORKINGVEHICLE;

The exact error:

Error in expression <, "DRIVER = this"];DRIVER moveInDriver WORKINGVEHICLE;>
Error position: <WORKINGVEHICLE;>
Error Missing ;

What could be the problem here?

Share this post


Link to post
Share on other sites
sleep 20;
TEST_GROUP = createGroup east;
WORKINGVEHICLE = CreateVehicle ["B_Hunter_HMG_F", getPos player, [], 0, "NONE"];
"O_Soldier_F"  createUnit [getPos player, TEST_GROUP,"this assignAsDriver WORKINGVEHICLE; this moveInDriver WORKINGVEHICLE"]

Share this post


Link to post
Share on other sites

It works your way just fine. A couple things. I should have noticed I could write more code in the init field but I may have figured that it wouldn't have made a difference. Also, I think the way I did it should have worked. My method was in fact lifted from some of my Arma 2 scripts. Maybe soldiers cannot be stored in variables these days? Anyway, this way should work good for me and I thank you very much.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×