Arma 3 Scripting

BIS_fnc_transportService

  • Arma 3 v0.50
  • First in Arma 2 v1.00

Function · Markdown · JSON · original wiki page

Description

Transportation system

Syntax

[caller, vehicle, position, mainScope, secopScope] call BIS_fnc_transportService

Parameters:

Returns: Nothing

Function header

The comment at the top of the function's file in the game; this page's description, params come from it.

/*
File: transportService.sqf

Description:
Transportation system

Parameter(s):
1: <object> unit allowed to use the transport system
2: <object> vehicle providing transport
3: <array> positions to be chosen by player; accepted strings are "pickup" and "unload", the second position is defined by the next paramter (OPTIONAL)
4: <position> (NEEDED ONLY IF PARAMETER #3 IS USED)

Returns:
N/A
*/

Community notes

Lou Montana

caller can only be player due to Arma 2 design: FSM overrides by _clicker = player instead of _clicker = _this select 0).

Parameters displayed are incorrect, these are:

_caller        = _this select 0;
_veh        = _this select 1;
_passedPos    = _this select 2;
_mainScope    = _this select 3;
_secopScope    = _this select 4;

if (count _this > 5) then
{
    _supportType = _this select 5;
};