BIS fnc transportService: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category\:Function Group\: Systems(\|\{\{[a-zA-Z0-9_:]+\}\})?\]\]" to "")
m (Some wiki formatting)
 
(43 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{RV|type=function


{{Function|Comments=
|game1= arma2
____________________________________________________________________________________________
|version1= 1.00


| arma2 |Game name=
|game2= arma2oa
|version2= 1.50


|1.00|Game version=
|game3= tkoh
|version3= 1.00


|gr1 = Supports |GROUP1=
|game4= arma3
____________________________________________________________________________________________
|version4= 0.50


| <pre>
|gr1= Supports
 
|descr= <pre>
/*
/*
File: transportService.sqf
File: transportService.sqf
Line 25: Line 30:
Returns:
Returns:
N/A
N/A
*/
*/</pre>
 
//MP framework init (used for move command given to transporter vehicle)
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |DESCRIPTION=
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_transportService]]; --> |SYNTAX=
{{Wiki|placeholder}}


|p1= |PARAMETER1=
|s1= [caller, vehicle, position, mainScope, secopScope] call [[BIS_fnc_transportService]]


| [[Nothing]] |RETURNVALUE=
|p1=
____________________________________________________________________________________________


|x1= <code></code> |EXAMPLE1=
|r1= [[Nothing]]
____________________________________________________________________________________________


| |SEEALSO=
|x1=


|seealso=
}}
}}


<h3 style="display:none">Notes</h3>
{{Note
<dl class="command_description">
|user= Lou Montana
<!-- Note Section BEGIN -->
|timestamp= 20180428002100
 
|text= ''caller'' can only be [[player]] due to {{arma2}} design: FSM overrides by <sqf inline>_clicker = player</sqf> instead of <sqf inline>_clicker = _this select 0</sqf>).<br>
<!-- Note Section END -->
</dl>
 
<h3 style="display:none">Bottom Section</h3>
 
[[Category:Functions|{{uc:transportService}}]]
[[Category:{{Name|arma2}}: Functions|{{uc:transportService}}]]
[[Category:{{Name|arma2oa}}: Functions|{{uc:transportService}}]]
[[Category:{{Name|tkoh}}: Functions|{{uc:transportService}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:transportService}}]]
 
<!-- CONTINUE Notes -->
<dl class="command_description">
<dd class="notedate">Posted on April 28, 2018 - 00:21 (UTC)</dd>
<dt class="note">[[User:Lou Montana|Lou Montana]]</dt>
<dd class="note">
''caller'' can only be [[player]] due to Arma 2 design: FSM overrides by {{Inline code|_clicker {{=}} [[player]]}} instead of {{Inline code|_clicker {{=}} [[_this]] [[select]] 0}}).<br>
Parameters displayed are incorrect, these are:
Parameters displayed are incorrect, these are:
<code>_caller {{=}} [[_this]] [[select]] 0;
<sqf>
_veh {{=}} [[_this]] [[select]] 1;
_caller = _this select 0;
_passedPos {{=}} [[_this]] [[select]] 2;
_veh = _this select 1;
_mainScope {{=}} [[_this]] [[select]] 3;
_passedPos = _this select 2;
_secopScope {{=}} [[_this]] [[select]] 4;
_mainScope = _this select 3;
_secopScope = _this select 4;


[[if]] ([[count]] [[_this]] > 5) [[then]] {
if (count _this > 5) then
_supportType {{=}} [[_this]] [[select]] 5;
{
};</code>
_supportType = _this select 5;
</dd>
};
</dl>
</sqf>
<!-- DISCONTINUE Notes -->
}}

Latest revision as of 11:40, 13 July 2022

Hover & click on the images for description

Description

Description:
/*
	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
*/
🏗
Placeholder description extracted from the function header by BIS_fnc_exportFunctionsToWiki.
Execution:
call
Groups:
Supports

Syntax

Syntax:
[caller, vehicle, position, mainScope, secopScope] call BIS_fnc_transportService
Return Value:
Nothing

Examples

Examples:
Example needed

Additional Information

See also:
See also needed

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
Lou Montana - c
Posted on Apr 28, 2018 - 00:21 (UTC)
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; };