_variable = _group createUnit ["B_recon_JTAC_F", _position, [], 0, "NONE"];
// _variable = 1;
_trigger = createTrigger ["EmptyDetector", [0,0,0], false];
_trigger setTriggerStatements ["this", format ["[%1] spawn _script;", _variable], ""];
Hi, if _variable is an object I get an error message for this code (when setting trigger statements, not when activating the trigger) telling me there is a ] missing. If _variable is a not an object (a number f.e.) everything works fine. What is the matter with this weird behaviour?