Jump to content

engima

Member
  • Content Count

    452
  • Joined

  • Last visited

  • Medals

Community Reputation

219 Excellent

7 Followers

About engima

  • Rank
    Gunnery Sergeant

core_pfieldgroups_3

  • Interests
    Sports, Music, Submarines, Software Development
  • Occupation
    Computer Engineer, Developer

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. New version. Version 0.70 Added search and replace functionality. (Big thanks to Josef!)
  2. The GarageDefinitions.sqf file contains a list of garage definition items (arrays with values). You should not add the function, you should use the function to create new garage definitions, and then add them to the list. 1. Create a temp mission. Decide a building that you want to use and put a vehicle near it. 2. Start the script in init (or in a trigger), send in the building and the vehicle as parameters, and park the vehicle as you want it. 3. Quit temp mission and open the RTF log file. Last garage definition entry is the last position of your vehicle. Add that definition to GarageDefinitions.sqf.
  3. Thanks for notifying me about the script error! Here, use the script below - (I'll also include it in future versions of the package). Example of usage: Put in a vehicle near a building and name it myVehicle. Create a radio trigger and put the following line in it: [nearestBuilding myVehivle, myVehicle] spawn PARKEDVEHICLES_MonitorGarageDefinition; Script will output the garage definition (as a hint and in RTF), and you can drive around with the vehicle until your satisfied with the positioning. The last parked vehicle entry in the RTF will be the garage definition you need. Script:
  4. Is it a building that has building positions? Otherwise the building pos attribute must be sent in as -1. Or there is something wrong with your definition item in GarageDefinitions.sqf. Check the file and make sure you follow the pattern. Post the line here if you still do not find the problem. A garage definition defines how the vehicle will be placed in relation to a building. It is an array with building type, building pos reference and position and direction of vehicle in relation to the building. (Only the building type will not be enough, you must investigate each one.)
  5. First, this is not really how you should think of or use event handlers. You use an event handler to react on an event, and not enabling or disabling them as you find suitable at the moment. If you have more than one event handler of a type and they interfere with each other - that is affecting the same resources - you do better merging them into one. Then you have full control over all conditions. Second, is HandleDamage your example? It’s not just any example, since it is one that returns a value that sets the unit’s health, and therefore it is more to regard as a special case i believe. Third, why would you want to turn on and off Ace during a mission?
  6. No. The idea behind this script is to define a parking spot in relation to a building. But if anyone can tell me how to recognize car parks and their bays then I might support them in a new version.
  7. Forgot it. Now added under Installation. Thanks!
  8. Engima's Parked Vehicles v1.0 Overview Engima's Parked Vehicles is a script that adds empty vehicles in garages and next to buildings across the map in an Arma 3 mission. Description 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. Vehicles are created when a player gets within spawn distance, and they are removed again (and remembered), when all players get beyond spawn radius. 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. 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 Configure/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. Licence MIT. Version History Version 1.0 -First version. Other releases Engima's Traffic (script) Engima's Civilians (script) Escape Tanoa (mission)
  9. New version. Version 0.69 -Added support for all script commands up until Arma 3 version 1.96 (into ScriptCommands.xml). -Updated dependency to .NET to 4.6.2.
  10. engima

    [RELEASE] Escape Tanoa by Engima

    New version. Version 2.1 -Mission parameters are now saved in profile, and reused by default. -Removed error message about missing image Escape.jpg. -Lowered the number of armed and heavy armored vehicles in general traffic. -Added more possible locations for comcenters. -Fixed: Removed some vehicles that required the Laws of war DLC. -Fixed: Too few enemy ambient infantry in the woods. -Fixed: Script error when hijacking comcenter.
  11. I didn’t know that. So in general, if you have a group with waypoints and deletes them all the way down to index 0, what will happen? I expect nothing, but apperently something can get wrong. Will the Arma engine get confused? Obviously in this case...?
  12. engima

    [RELEASE] Escape Tanoa by Engima

    Since Escape Chernarus for Arma 2 there is "some" support for porting it to different islands. However I'm working on exactly that, and I already have a playable but not ready for release version of Escape Altis that I have played for test with friends. I'm planning on releasing that later, and at the sime time make the mission as easy as possible to port. If you want to port this very mission I then recommend to wait for Escape Altis.
  13. Ok, sorry. Try removing him in ON_UNIT_REMOVING then, which is executed right before the vehicle is removed.
  14. No. It should be no problem. The new driver will be handled like the old one.
  15. Yes, possible vehicles is an array that goes into the start parameter set as VEHICLES. And the default driver can be replaced using the ON_UNIT_CREATED callback (called after unit has been created). And if you want some more control over spawned vehicle classes other than pure random, or number of vehicles during certain times of the day etc, use callback ON_UNIT_SPAWNING (called right before a unit is created).
×