{"name":"BIS_fnc_transportService","title":"BIS fnc transportService","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_transportService","revid":327739,"updated":"2022-07-13T10:40:56Z","groups":["Supports"],"status":"ok","games":{"arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma2 1.00","arma3_since":"0.50","description":"Transportation system","syntaxes":[{"syntax":"[caller, vehicle, position, mainScope, secopScope] call BIS_fnc_transportService","params":[{"name":"param1","type":"Object","type_expr":"Object","description":"<object> unit allowed to use the transport system","text":"1: <object> unit allowed to use the transport system","source":"docblock"},{"name":"param2","type":"Object","type_expr":"Object","description":"<object> vehicle providing transport","text":"2: <object> vehicle providing transport","source":"docblock"},{"name":"param3","type":"Array","type_expr":"Array","optional":true,"description":"<array> positions to be chosen by player; accepted strings are \"pickup\" and \"unload\", the second position is defined by the next paramter (OPTIONAL)","text":"3: <array> positions to be chosen by player; accepted strings are \"pickup\" and \"unload\", the second position is defined by the next paramter (OPTIONAL)","source":"docblock"},{"name":"param4","type":"Position","type_expr":"Position","description":"<position> (NEEDED ONLY IF PARAMETER #3 IS USED)","text":"4: <position> (NEEDED ONLY IF PARAMETER #3 IS USED)","source":"docblock"}],"returns":{"type":"Nothing","type_expr":"Nothing"}}],"notes":[{"user":"Lou Montana","date":"2018-04-28T00:21:00Z","text":"*caller* can only be player due to Arma 2 design: FSM overrides by `_clicker = player` instead of `_clicker = _this select 0`).\nParameters displayed are incorrect, these are:\n\n```sqf\n_caller        = _this select 0;\n_veh        = _this select 1;\n_passedPos    = _this select 2;\n_mainScope    = _this select 3;\n_secopScope    = _this select 4;\n\nif (count _this > 5) then\n{\n    _supportType = _this select 5;\n};\n```"}],"docblock":{"text":"File: transportService.sqf\n\nDescription:\nTransportation system\n\nParameter(s):\n1: <object> unit allowed to use the transport system\n2: <object> vehicle providing transport\n3: <array> positions to be chosen by player; accepted strings are \"pickup\" and \"unload\", the second position is defined by the next paramter (OPTIONAL)\n4: <position> (NEEDED ONLY IF PARAMETER #3 IS USED)\n\nReturns:\nN/A","meta":{"file":"transportService.sqf"}},"filled_from_docblock":["description","params"]}