BIS fnc saveVehicle: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "(\|p[0-9]+ *= *[^(]+\(Optional(, default[^)]*)\) )A([a-z])" to "$1a$3")
m (Text replacement - "(\|[pr][0-9]+ *= *[^-\r\n]+) *- *V([a-z])" to "$1 - v$2")
Line 10: Line 10:
|s1= [object,target,params,delete] call [[BIS_fnc_saveVehicle]]
|s1= [object,target,params,delete] call [[BIS_fnc_saveVehicle]]


|p1= object: [[Object]] - Vehicle
|p1= object: [[Object]] - vehicle
|p2= target: [[Array]] - in format:
|p2= target: [[Array]] - in format:
*0: [[Namespace]], [[Group]] or [[Object]] - Where the save will be saved
*0: [[Namespace]], [[Group]] or [[Object]] - Where the save will be saved

Revision as of 15:46, 8 November 2023

Hover & click on the images for description

Description

Description:
Save vehicle's params (textures, animations, crew).
Execution:
call
Groups:
Vehicles

Syntax

Syntax:
[object,target,params,delete] call BIS_fnc_saveVehicle
Parameters:
object: Object - vehicle
target: Array - in format:
params: Array - (Optional, default []) additional parameters to be saved
delete: Boolean - (Optional, default false) true to delete the save
Return Value:
Array - Saved value

Examples

Example 1:
[BIS_tank, [missionNamespace, "BIS_someTankSave"], ["SomeRandomParam"], false ] call BIS_fnc_saveVehicle;

Additional Information

See also:
BIS_fnc_loadVehicle

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