{"name":"triggerType","title":"triggerType","type":"command","url":"https://community.bistudio.com/wiki/triggerType","revid":339279,"updated":"2023-04-28T14:02:49Z","groups":["Triggers"],"status":"ok","games":{"arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma2 1.00","arma3_since":"0.50","locality":{"argument":"global"},"description":"Returns the trigger type.\n\n> [!IMPORTANT]\n> The trigger could be local or remote but the result returned by this command will be for the trigger type set up locally on the client that executed the command.\n> See createTrigger for more info.","syntaxes":[{"syntax":"triggerType trigger","params":[{"name":"trigger","type":"Object","type_expr":"Object"}],"returns":{"type":"String","type_expr":"String","description":"can be one of the following (see setTriggerType for details):\n- `\"NONE\"` - `\"EAST G\"` - `\"WEST G\"` - `\"GUER G\"` - `\"SWITCH\"` - `\"END1\"` - `\"END2\"` - `\"END3\"` - `\"END4\"` - `\"END5\"` - `\"END6\"` - `\"LOOSE\"` - `\"WIN\"` Can return `\"ERROR\"` in case of an invalid trigger type (due to Mission.sqm manual edit or other type of data corruption)","text":"String - can be one of the following (see setTriggerType for details):\n\n- `\"NONE\"`\n- `\"EAST G\"`\n- `\"WEST G\"`\n- `\"GUER G\"`\n- `\"SWITCH\"`\n- `\"END1\"`\n- `\"END2\"`\n- `\"END3\"`\n- `\"END4\"`\n- `\"END5\"`\n- `\"END6\"`\n- `\"LOOSE\"`\n- `\"WIN\"`\n\nCan return `\"ERROR\"` in case of an invalid trigger type (due to Mission.sqm manual edit or other type of data corruption)"},"form":"unary","right":{"text":"trigger"}}],"examples":[{"code":["_type = triggerType tr1;"]}],"see_also":["setTriggerType"]}