BIS fnc saveVehicle: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " [ [[" to " [<nowiki/>[[") |
Lou Montana (talk | contribs) m (Text replacement - "[[Arma 3: Vehicle Customization" to "[[Arma 3: Vehicle Customisation") |
||
(34 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=function | ||
| arma3 | | |game1= arma3 | ||
|version1= 1.00 | |||
| | |gr1= Vehicles | ||
| Save vehicle's params (textures, animations, crew). | |descr= Save vehicle's params (textures, animations, crew). | ||
| [object,target,params,delete] call [[BIS_fnc_saveVehicle]] | |s1= [object,target,params,delete] call [[BIS_fnc_saveVehicle]] | ||
|p1= object: [[Object]] - vehicle | |||
|p1= object: [[Object]] - | |||
|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 | ||
*1: [[String]] - Name of the save | *1: [[String]] - Name of the save | ||
|p3= params: [[Array]] - (Optional, default []) | |p3= params: [[Array]] - (Optional, default <sqf inline>[]</sqf>) additional parameters to be saved | ||
|p4= delete: [[Boolean]] - (Optional, default [[false]]) [[ | |p4= delete: [[Boolean]] - (Optional, default [[false]]) [[true]] to delete the save | ||
| [[Array]] - | |r1= [[Array]] - saved value | ||
|x1= < | |x1= <sqf>[BIS_tank, [missionNamespace, "BIS_someTankSave"], ["SomeRandomParam"], false] call BIS_fnc_saveVehicle;</sqf> | ||
| | |seealso= [[BIS_fnc_initVehicle]] [[BIS_fnc_loadVehicle]] [[Arma 3: Vehicle Customisation]] | ||
}} | }} | ||
Latest revision as of 22:57, 8 April 2024
Description
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
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