BIS fnc initVehicleKart: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Generated by BIS_fnc_exportFunctionsToWiki)
 
m (Text replacement - " (\|[pr][0-9]+ *= *[^-]+) *- *A([a-z])" to " $1 - a$2")
 
(29 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{RV|type=function


{{Function|= Comments
|game1= arma3
____________________________________________________________________________________________
|version1= 1.20


| arma3 |= Game name
|gr1= Vehicles


|1.00|= Game version
|descr= Customise given kart and its driver.
____________________________________________________________________________________________


| <pre>/*--------------------------------------------------------------------
|s1= [kart,number,livery,raceTeam] call [[BIS_fnc_initVehicleKart]]
file: fn_initVehicleKart.sqf
============================
Author: Julien VIDA <@tom_48_97>


Description: Set the number of the given kart
|p1=kart: [[Object]]
[KartName, NN] call bis_fnc_initVehicleKart


Parameter(s):
|p2=number: [[Array]] - (Optional, default [-1,-1]) kart number from 00 to 99
0 - Object: kart
1 - Array: [First digit, second digit]
3 - From 0 to 4
4 - Bool: Let the driver with the fuel uniform or randomize it


Example:
|p3=livery: [[Number]] - (Optional, default ''Random'') kart livery. A integer from 0 to 9
[mySuperKart,[9,7], -1, -1] call bis_fnc_initVehicleKart;


--------------------------------------------------------------------*/
|p4=raceTeam: [[Number]] - (Optional, default ''Matches the livery'') driver uniform


</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
|r1= [[Boolean]] - always [[true]]
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_initVehicleKart]]; --> |= Syntax
|x1= <sqf>[BIS_kart, [9,7], -1, -1] call BIS_fnc_initVehicleKart;</sqf>
|p1= |= Parameter 1
 
| |= Return value
____________________________________________________________________________________________
 
|x1= <code></code> |=
____________________________________________________________________________________________
 
| |= See also


|seealso= [[BIS_fnc_initVehicle]] [[Arma 3 Karts]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Vehicles|{{uc:initVehicleKart}}]]
[[Category:Functions|{{uc:initVehicleKart}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:initVehicleKart}}]]

Latest revision as of 12:40, 8 November 2023

Hover & click on the images for description

Description

Description:
Customise given kart and its driver.
Execution:
call
Groups:
Vehicles

Syntax

Syntax:
[kart,number,livery,raceTeam] call BIS_fnc_initVehicleKart
Parameters:
kart: Object
number: Array - (Optional, default [-1,-1]) kart number from 00 to 99
livery: Number - (Optional, default Random) kart livery. A integer from 0 to 9
raceTeam: Number - (Optional, default Matches the livery) driver uniform
Return Value:
Boolean - always true

Examples

Example 1:
[BIS_kart, [9,7], -1, -1] call BIS_fnc_initVehicleKart;

Additional Information

See also:
BIS_fnc_initVehicle Arma 3 Karts

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