{"name":"BIS_fnc_transportService","operator":null,"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","replaced_by":[],"games":[{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma2","name":"Arma 2","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Transportation system","syntaxes":[{"syntax":"[caller, vehicle, position, mainScope, secopScope] call BIS_fnc_transportService","since":null,"effect":null,"exec":null,"params":[{"name":"param1","type":"Object","types":["Object"],"optional":false,"default":null,"description":"<object> unit allowed to use the transport system","since":null,"text":"1: <object> unit allowed to use the transport system","source":"docblock"},{"name":"param2","type":"Object","types":["Object"],"optional":false,"default":null,"description":"<object> vehicle providing transport","since":null,"text":"2: <object> vehicle providing transport","source":"docblock"},{"name":"param3","type":"Array","types":["Array"],"optional":true,"default":null,"description":"<array> positions to be chosen by player; accepted strings are \"pickup\" and \"unload\", the second position is defined by the next paramter (OPTIONAL)","since":null,"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","types":["Position"],"optional":false,"default":null,"description":"<position> (NEEDED ONLY IF PARAMETER #3 IS USED)","since":null,"text":"4: <position> (NEEDED ONLY IF PARAMETER #3 IS USED)","source":"docblock"}],"returns":{"type":"Nothing","types":["Nothing"],"description":null,"text":"Nothing"}}],"examples":[],"multiplayer":null,"problems":null,"aliases":[],"see_also":[],"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`).\n\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```"}],"categories":["Arma 2: Functions","Arma 2: New Functions","Arma 2: Operation Arrowhead: Functions","Arma 3: Functions","Function Group: Supports","Functions","Introduced with Arma 2 version 1.00","Take On Helicopters: Functions"],"docblock":{"author":null,"description":"Transportation system","params":[{"index":1,"name":null,"types":["Object"],"optional":false,"default":null,"description":"<object> unit allowed to use the transport system","text":"<object> unit allowed to use the transport system"},{"index":2,"name":null,"types":["Object"],"optional":false,"default":null,"description":"<object> vehicle providing transport","text":"<object> vehicle providing transport"},{"index":3,"name":null,"types":["Array"],"optional":true,"default":null,"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":"<array> positions to be chosen by player; accepted strings are \"pickup\" and \"unload\", the second position is defined by the next paramter (OPTIONAL)"},{"index":4,"name":null,"types":["Position"],"optional":false,"default":null,"description":"<position> (NEEDED ONLY IF PARAMETER #3 IS USED)","text":"<position> (NEEDED ONLY IF PARAMETER #3 IS USED)"}],"returns":{"types":[],"text":"N/A"},"examples":[],"syntax":null,"execution":null,"notes":null,"requirements":null,"meta":{"file":"transportService.sqf"},"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"},"filled_from_docblock":["description","params"]}