Aha, got rid of the error message. But now Ive run into a problem with my scripts.
Truck2 addEventHandler["getin", "[this]exec {intruck.sqs}"];
Truck2 addEventHandler["getout", "[this]exec {outoftruck.sqs}"]
Works find. Both scripts are activeted when the requisite action is performed, however the scripts that are called dont work properly.
intruck.sqs looks like;
(_this select 0) setCaptive true;
exit
And Outoftruck is the same but False.
The idea being that, as long as you are in teh truck, you are a captive, and as soon as you get out the truck, you become a target again.