From Bohemia Interactive Community
Hover & click on the images for description
Description
- Description:
- This function changes the textures, animation sources and/or mass of a given vehicle.
Unless explicitly mentioned , the function will restore the initial state of every animation sources of the given object (see Example 3).
- Execution:
- call
- Groups:
- Vehicles
Syntax
- Syntax:
- [vehicle, variant, animations, mass] call BIS_fnc_initVehicle
- Parameters:
- vehicle: Object - vehicle to customize
- variant: (Optional, default false)
- animations: (Optional, default false)
- Boolean - true to restore init phase of every animation sources
- Array - animation sources with their probability in format c["animationSource1", 0.5, "animationSource2", 0.5]
⚠
If the first element is wrong, it will skip the rest of the animation sources!
- String - variant class name - from cconfigFile >> "CfgVehicles" or cmissionConfigFile >> "CfgVehicleTemplates" (see CfgVehicleTemplates)
- mass: (Optional, default false)
- Boolean - true to set the default mass, false to disable the mass change
- Number - mass to remove/add to the vehicle
- Return Value:
- Boolean - function success or not
Examples
- Example 1:
- Example 2:
- Example 3:
- Example 4:
- Example 6:
Additional Information
- See also:
- BIS_fnc_saveVehicle BIS_fnc_loadVehicle Arma 3: Vehicle Customisation
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