Author: Engima
Author Website: https://github.com/XEngima/Arma3-Scripts-ParkedVehicles

Requirements: No addons required

Version: 1.00

Short description: is a scripts that adds empty vehicles in garages and next to buildings across the map in an Arma 3 mission.

Date: 2019-11-22 11:52


Comments: (0)
Rating:



 





Engima's Parked Vehicles

by
engima


Description:
Overview
Engima's Parked Vehicles is a scripts that adds empty vehicles in garages and next to buildings across the map in an Arma 3 mission.

Descripting
To "complete" my Engima's Traffic script I have also created a general script to place empty vehicles near or in Buildings across a map. You can customize types of buildings and types of vehicles, spawn radius, and use callbacks for when vehicles spawn and despawn.


For a vehicle to spawn in or outside a building there has to be a garage definition entry for that building in the file Engima\ParkedVehicles\GarageDefinitions.sqf. Garages and other buildings for islands Stratis, Altis, Malden and Tanoa are supported out of the box. Anyone can add more garage definitions when needed.


Installation / Usage:
For usage instructions and information of how to use the Engima's Parked Vehicles please refer to the included documentation and/or example mission.

Download
Using the TypeSqf Editor (recommended for Windows users)
From Github´╗┐

Installation
TypeSqf: Open the CPack Console and type "install Engima.ParkedVehicles".

Manual: Copy the folder Engima and the file initserver.sqf to the root of your mission. (If you already have the initserver.sqf file in your mission, copy the content from my file into yours).

Usage
Configura/Customize the script by altering the parameter list for the main function call.

File "Engima\ParkedVehicles\ConfigAndStart":

// Set custom parameters here private
_parameters = [
["BUILDING_TYPES", ["Land_FuelStation_02_workshop_F","Land_GarageShelter_01_F", "Land_FuelStation_01_shop_F", ...]],
["VEHICLE_CLASSES", ["C_Offroad_01_F", "C_Offroad_01_repair_F", "C_Quadbike_01_F]],
["SPAWN_RADIUS", 750],
["PROBABILITY_OF_PRESENCE", 1],
["ON_VEHICLE_CREATED", {}],
["ON_VEHICLE_REMOVING", {}],
["DEBUG", false] ];

// Run script
_parameters call PARKEDVEHICLES_PlaceVehiclesOnMap;
Script can also be extended to contain support for more garages/buildings. This may be important if you want to use the script on maps for which the default package was not intended. In that case you want to add building definitions to the file "Engima\ParkedVehicles\GarageDefinitions".

Vehicles for building classes that do not exist as a building definition will not be spawned.


Notes:
Other releases
Engima's Traffic (script)
Engima's Civilians (script)
Escape Tanoa (mission)


License / Disclaimer:
MIT.


Changelog:
1.0
-First version


Forum topic:
- BI forums




Enable javascript to be able to download from Armaholic please!