Skip to content

HakonRydland/A3-HR-Garage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 

Repository files navigation

A3-HR-Garage

Install:

copy contents of the folder Root into your mission root. if you already have some of these files, merge them together. that easy.


How to use:

Create Access Point

To create an Garage access point you need to use the function [_obj] remoteExec ["HR_Garage_fnc_initGarage",0,true] replacing _obj with your garage access point object. Example:

   [cursorObject] remoteExecCall ["HR_Garage_fnc_initGarage",0,true]

will make the cursorObject into an garage access point

[this] call HR_Garage_fnc_initGarage;

in the init line of an object will make it a garage access point


Adding a Vehicle

To Add a vehicle to the garage, you can do one of two things:

  1. to add vehicles by className use
[_classes, _lockUID] RemoteExecCall ["HR_Garage_fnc_addVehiclesByClass",2]

replacing _classes with an array of vehicle classnames

  1. to add an vehicle by Object use
[_obj, clientOwner, call HR_Garage_dLock, player] remoteExecCall ["HR_Garage_fnc_addVehicle",2];

replacing _obj with the object in questin, note certain restrictions are in place for object garaging.


Saving a garage

To get the save data for the garage do

private _saveData = [] call HR_Garage_fnc_getSaveData;

you can the store this somewhere like in profilenameSpace... Note this is a server only function


Loading a garage

To restore the save data for the garage do

[_saveData] call HR_Garage_fnc_loadSaveData;

Note this is a server only function


Furter customisation of the garage behaviour can be done in the config.inc file located in Root\Garage

About

This is my custom Garage and logistics system for Arma 3

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Languages