that worked perfectly, now I'm trying the same thing but to set a variable within an object:
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">player setVehicleInit "this setpos [getPos this select 0, getPos this select 1, (getPos this select 2) - 2]; this setVariable ["parajump", true]";
processInitCommands;
clearVehicleInit player;
But I get an error saying
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">'... this setVariable [|#|'
Error Missing ]
I used your code for the setPos command, using player as the _unit and that worked, teleporting the player to the area. But when I add the setVariable to the init line I get this error.
To make sure the syntax was correct for the setVariable part I tried adding it to the init line of a unit in a separate mission. And got no errors, what is missing in that code?