Jump to content

darthclide

Member
  • Content Count

    1
  • Joined

  • Last visited

  • Medals

Community Reputation

1 Neutral

About darthclide

  • Rank
    Newbie
  1. The problem is that since he chose quotes to surround the object being passed, the "interpreter" or whatever you want to call it, screws up when it comes across the second quotation mark. I will highlight where I am talking about. veh = [this, 10, 120, 0, TRUE, FALSE, "this addEventHandler ["Fired",{[_this select 0,getNumber (configFile/"CfgAmmo"/(_this select 4)/"explosive")] spawn {if (_this select 1==1) then {sleep 0.75};_this select 0 setVehicleAmmo 1}}]"] execVM "vehicle.sqf"; The error I get says "missing ]" Any help would be appreciated. I am new to all this scripting, but would it be possible to concatenate that whole thing into a string variable, then would the following work? veh = [this, 10, 120, 0, TRUE, FALSE, "this addEventHandler [sTRING_VARIABLE]"] execVM "vehicle.sqf";
×