Jump to content

Search the Community

Showing results for tags 'scripting'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


    • ARMA 3
    • DAYZ
    • ARMA 2
    • ARGO
    • YLANDS
  • ArmA Toolmakers's Releases
  • ArmA Toolmakers's General
  • Die Hard OFP Lovers' Club's Topics
  • Japan in Arma's Topics
  • Arma 3 Photography Club's Discussions
  • The Order Of the Wolfs- Unit's Topics


PlayStation PSN














Found 176 results

  1. "So gory, that Bohemia Interactive once banned it from the Workshop!" "The most badass mod you've ever used." Adds various elements of gore to ArmA3 such as blood splatters, blood sprays, blood pooling, bleeding, gibbing, and other misc details. For Multiplayer: Servers and clients must run the addon. Steam Workshop: http://steamcommunity.com/sharedfiles/filedetails/?id=667953829 Github: https://github.com/zooloo75/BloodLust/ Requires CBA! The addon must be running on the server and all clients. YOU MAY NOT RUN BLOODLUST ON A MONETIZED SERVER WITHOUT MY PERMISSION! Support my endeavors with a generous donation using the "Donate" button below. Donations go towards coffee/beer and stuff. Thank you for your generosity! :) Changelog:
  2. Next to already revealed an known https://community.bistudio.com/wiki/Category:Arma_3:_New_Scripting_Commands_List There are more script commands now :) + fixed http://feedback.arma3.com/view.php?id=12324 + only discussion related to new or changed Arma 3 Beta/Dev Scripting allowed
  3. Hello, everyone. I'm making Ravage mission, few players asked for persistent world discovery state and I'm struggling with making that. Basic idea was to store activated trigger names in server's profileNamespace and load this list upon restart and simply activate triggers again. Problem is OR doesn't seems to work in Condition field... or maybe I'm just completely wrong and it can't be done like this. Any advice appreciated.
  4. Intercept is a C/C++ binding interface to the Arma 3 engine (internally referred to as the Real Virtuality or RV engine). It's goal is to provide easy to use library for addon makers to develop addons in a native language, or to develop language extensions for the Arma 3 engine. In a nutshell, Intercept provides a full C/C++ binding system for calling the base C++ functions which are declared in RVEngine for SQF functions. All SQF functions within the RVEngine are actually native code, which is called by SQF via the function names. Intercept bypasses SQF entirely, allowing native C++ plugins to seamlessly interact with the game engine. In essence, Intercept allows for expansions of the game engine, calling internal functionality of the engine which has been exposed via SQF functions. This was the idea behind the intended Java implementation by Bohemia Interactive in Take On Helicopters and was planned for, but never implemented in Arma 3. Intercept not only completes the intended functionality of what Java was meant to provide but has gone much further, including returning data to SQF and multithreaded addons. Intercept works on a host/client based system, in which the host, Intercept itself, hosts client DLLs that implement the Intercept library. The Intercept host handles access to the RV engine by clients through a layer that provides thread concurrency, memory handling, and event dispatching. Client DLLs are then able to be written in a way that can safely ignore most internal nuances of handling data in the RV engine and work with standard C++ STD/STL data types, and only a few specialized objects specific to the game engine. The Intercept library also provides raw C bindings to the C++ versions of SQF functions, so it is entirely possible to use Intercept as the basis for writing in additional scripting languages to the RV engine, such as Python or Lua. You can find more information on our GitHub project page. Technical Details Intercept works by making direct calls to the SQF functions in the RV engine. These functions are themselves C++ functions which are then exposed to SQF for allowing interaction with the underlying game engine; Intercept completely bypasses SQF and allows C++ plugins to interact with the engine directly. User created threads can even be created and by properly using the provided thread concurrency functionality it is possible to execute game functionality safely and concurrently. Intercept clients are able to invoke through the host these commands by provided wrapper functions that replicate and emulate the SQF command namespace (minus some unneeded functionality, like arrays or control structures). These wrapper functions take standard inputs, such as simple primitives like float or bool, and standard std::string arguments and convert them into the proper SQF command variables, providing a seamless layer to the clients. An example of a very simple client that invokes nular, unary, and binary SQF functions (aka functions that take no arguments, a right side argument only, and both a left and right side argument respectively) is demonstrated below and a more examples can be found here. #include <Windows.h> #include <stdio.h> #include <cstdint> #include <sstream> // the Intercept library, only one include required. #include "intercept.hpp" // required exported function to return API version int __cdecl intercept::api_version() { return 1; } // This function is exported and is called by the host each frame. void __cdecl intercept::on_frame() { // get the player object and store it intercept::types::object player = intercept::sqf::player(); // get the post of the player intercept::types::vector3 pos = intercept::sqf::get_pos(player); // build a string... std::stringstream side_chat_msg; side_chat_msg << "Hello Arma World, here is the player pos: " << pos.x << "," << pos.y << "," << pos.z; // send it to the binary SQF sideChat command intercept::sqf::side_chat(player, side_chat_msg.str()); } // Normal Windows DLL junk... BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved ) { switch (ul_reason_for_call) { case DLL_PROCESS_ATTACH: break; case DLL_THREAD_ATTACH: case DLL_THREAD_DETACH: case DLL_PROCESS_DETACH: break; } return TRUE; } Completion Status As of now (3/13/16) Intercept is over 82% language feature complete. You can view the progress of wrapper completion here. Almost all normally used SQF functions are available to the end user, and with the added ability of writing inline SQF code, you can call any function that has not had a wrapper written for it yet (though with a small performance penalty). We will post a release thread when we start releasing builds of the host. Contributions Feel free to contribute as much as you want to this project in terms of time and code. The goal of this project is to be a tool for the community to provide better performing and more complex addons for the Arma 3 platform. If you would like to contribute or want more information please join our Slack channels and get involved! License Intercept is licensed under the MIT license. You can find the full license in the LICENSE file. Prior to commit f9fe4d5 the project was licensed under the GNU/GPL v2 license and continues to be for any commit prior to that.
  5. WORK IN PROGRESS https://www.youtube.com/watch?v=K6LDXK1URr8 I've decided to openly release a very basic version of iBuild for testing. The main reason for this is to test the underlying foundations and iron out any kinks before I start piling new features and content on top. It's very basic and rough, but it has enough content to give you an idea of where it's heading. The mod has evolved from the first conceptual prototype I put together, and I've lost count the amount of times I've started over, so I hope you guys enjoy what I've settled with. I'm still in the process of writing most of the documentation, which I suck at doing, but you can find what has been written so far organised into a drop-down menu under 'iBuild'. More info can be found in the description on Steam. >| Download Pre-Alpha |< About time! ;)
  6. I'm trying to make a Lobby Parameter for a mission where the player can select to enable a script or not. It is set as disabled by default. The script is VCOMAI, I want the player/group to have the option of playing the mission on an easier vanilla setup and also be able to play the mission with a more challenging AI. I've tried a few things, but have not found anything definitive. I need to set up the parameter (class params?) and then set up the call for it (in the init.sqf?). I came up with this, that I put in the description.ext: class Params { class VcomAI { //paramsArray[0] title="VcomAI"; values[]={0,1}; texts[]={"Disabled - meh","Enabled - Bring it on"}; default=0; }; }; but couldn't figure out how to call it from the init.sqf. I'm sure the paramsArray[0] is wrong, but I was trying to follow an old older script - meh... I also looked at a copy of Liberation, as they have several Lobby Parameters, however they are using some scripting that I don't quite follow with .hpp setups etc that are beyond me at this point. Any suggestions? Thanks!
  7. Hi I'm new to mission editing, but I wish to learn. I want to set a sniper to stay hidden and quiet, until comes in his view the designated VIP to kill together in a group of enemies, *kill him only*, then runs away unharmed. Other enemies must survive. I did try a lot of failed attempts using enable/disableAI, etc. but I have to give up: the sniper always attack other enemies before and after the VIP kill. Thank you.
  8. This script is best used with a keyhandler, however if you have a bit of experience with coding you can get it also work with addaction. This script works in MP ******************************** Download the sounds here (or use your own ones) Make a folder called sounds and put the two files inside this folder Put the following code in your description.ext class CfgSounds { class Siren { name = "Siren"; sound[] = {"sounds\Siren.ogg", 5.0, 1}; titles[] = {1, ""}; }; class Yelp { name = "Yelp"; sound[] = {"sounds\Yelp.ogg", 5.0, 1}; titles[] = {1, ""}; }; }; Put the following code in your keyhandler: case 33: {//F key if (_shift) then { _vehicle = (vehicle player); if (isNil {_vehicle getVariable "EmergencyVeh"}) then { _vehicle setVariable ["EmergencyVeh", false, true]; }; _ComVeh = _vehicle getVariable "EmergencyVeh"; if (vehicle player != player && (driver _vehicle == player && _ComVeh isEqualTo true)) then { if (isNil {_vehicle getVariable "siren"}) then { _vehicle setVariable ["siren", false, true]; }; _SirenState = _vehicle getVariable "siren"; if (_SirenState isEqualTo true) then { _vehicle setVariable ["siren", false, true]; } else { [[[_vehicle],"scripts\siren.sqf"],"BIS_fnc_execVM",true,false,false] call BIS_fnc_MP; _vehicle setVariable ["siren", true, true]; }; }; }; if (_ctrl) then { _vehicle = (vehicle player); if (isNil {_vehicle getVariable "EmergencyVeh"}) then { _vehicle setVariable ["EmergencyVeh", false, true]; }; _ComVeh = _vehicle getVariable "EmergencyVeh"; if (vehicle player != player && (driver _vehicle == player && _ComVeh isEqualTo true)) then { [[[_vehicle],"scripts\yelp.sqf"],"BIS_fnc_execVM",true,false,false] call BIS_fnc_MP; }; }; }; Create a folder called scripts. Inside this folder create a file called siren.sqf and put the following code into it: Private ["_vehicle"]; _vehicle = _this select 0; _repeat = true; while{ (alive _vehicle) && (_repeat isEqualTo true)} do { _vehicle say3D "Siren"; sleep 5.5; _repeat = _vehicle getVariable "Siren"; }; Inside the folder scripts create a file called yelp.sqf and put the following code into it: Private ["_vehicle"]; _vehicle = _this select 0; _vehicle say3D "Yelp"; Thats it! As always, if you have any questions feel free to ask! Cheers Puffin
  9. This script will spawn a vehicle on a marker and sets a custom vehicle skin. This scripts also works in MP. ******************************** First create a folder called skins and put all your skins in it. Create a folder called scripts. Inside this folder create a file called VehicleSpawner.sqf and put the following code into it: _dest = (_this select 3) select 0; _type = (_this select 3) select 1; _spawn = 0; if (_type == "Sport") then { _spawn = "C_Hatchback_01_sport_F"; }; if (_type == "SUV") then { _spawn = "C_SUV_01_F"; }; if (_type == "Jeep") then { _spawn = "C_Offroad_02_unarmed_F"; }; if (_type == "Offroad") then { _spawn = "C_Offroad_01_F"; }; if (_type == "Hellcat") then { _spawn = "I_Heli_light_03_unarmed_F"; }; if (_type == "Hummingbird") then { _spawn = "B_Heli_Light_01_F"; }; if (_type == "Ghosthawk") then { _spawn = "B_Heli_Transport_01_F"; }; if (_type == "Neophron") then { _spawn = "O_Plane_CAS_02_F"; }; if (_type == "Hunter") then { _spawn = "B_MRAP_01_F"; }; if (_type == "Ifrit") then { _spawn = "O_MRAP_02_F"; }; if (_type == "Marshall") then { _spawn = "B_APC_Wheeled_01_cannon_F"; }; if (_type == "Kuma") then { _spawn = "I_MBT_03_cannon_F"; }; _target = getMarkerPos _dest; _spwnveh = _spawn createVehicle (_target); if (_type == "Sport") then { _spwnveh setObjectTextureGlobal [0, "skins\Limo.jpg"]; }; if (_type == "SUV") then { _spwnveh setObjectTextureGlobal [0, "skins\SUV.jpg"]; }; if (_type == "Jeep") then { _spwnveh setObjectTextureGlobal [0, "skins\MB4WD.jpg"]; }; if (_type == "Offroad") then { _spwnveh setObjectTextureGlobal [0, "skins\Offroad.jpg"]; }; if (_type == "Hellcat") then { _spwnveh setObjectTextureGlobal [0, "skins\Hellcat.jpg"]; }; if (_type == "Hummingbird") then { _spwnveh setObjectTextureGlobal [0, "skins\Hummingbird.jpg"]; }; if (_type == "Ghosthawk") then { _spwnveh setObjectTextureGlobal [0,"skins\Ghosthawk_0.jpg"]; _spwnveh setObjectTextureGlobal [1,"skins\Ghosthawk_1.jpg"]; }; if (_type == "Neophron") then { _spwnveh setObjectTextureGlobal [0, "skins\Neo1.jpg"]; _spwnveh setObjectTextureGlobal [1, "skins\Neo2.jpg"]; }; if (_type == "Hunter") then { _spwnveh setObjectTextureGlobal [0, "skins\Hunter1.jpg"]; _spwnveh setObjectTextureGlobal [1, "skins\Hunter2.jpg"]; }; if (_type == "Ifrit") then { _spwnveh setObjectTextureGlobal [0, "skins\Ifrit1.jpg"]; _spwnveh setObjectTextureGlobal [1, "skins\Ifrit2.jpg"]; }; if (_type == "Marshall") then { _spwnveh setObjectTextureGlobal [0, "skins\Marshall0.jpg"]; _spwnveh setObjectTextureGlobal [1, "skins\Marshall1.jpg"]; _spwnveh setObjectTextureGlobal [2, "skins\Marshall2.jpg"]; }; if (_type == "Kuma") then { _spwnveh setObjectTextureGlobal [0, "skins\kuma_0.jpg"]; _spwnveh setObjectTextureGlobal [1, "skins\kuma_1.jpg"]; _spwnveh setObjectTextureGlobal [2, "skins\kuma_2.jpg"]; }; You can add or remove vehicles you (don't) need, it's pretty self explanatory. And don't forget to change the paths to your skins. Now create an empty marker called spawn_1. You can create multiple markers for different spawn locations. Then place an item in the editor (for example a sign) and add the following code to the init line: this addAction ["Spawn Jeep","scripts\VehicleSpawner.sqf",["spawn_1","Jeep"]]; this addAction ["Spawn Jeep","scripts\VehicleSpawner.sqf",["spawn_1","Jeep"]]; --> spawn_1 is the marker where you want to spawn your vehicle. Change if you want to spawn it eg. on spawn_2. Jeep is the vehicle you want to spawn (You have a line like _type == "Jeep" for every type of vehicle you want to spawn) Repeat this process for every vehicle you want to spawn on that sign. I have made a texture which you can use for your sign. You can download it here Hello, I searched a long time for a working restraining script, which works in MP. Long story short, I didn't found one, so I wrote one myself. Yes it's not perfect, so feel free to improve it, but it works. ******************************** Create a file called onPlayerRespawn.sqf (or use your existing one) and put the following code into it: restrain=false; restcaller=false; Create a folder called scripts. Inside this folder create a file called restrain.sqf and put the following code into it: restcaller = false; if (restrain=false;) then { if (player distance cursortarget < 2) then { restcaller = true; [[[],"scripts\restrainTarget.sqf"],"BIS_fnc_execVM",cursortarget,false,false] call BIS_fnc_MP; }; }; player distance cursortarget < 2 --> the number is the max. distance in meters to restrain someone. Change it to whatever you want. Inside the folder scripts create a file called restrainTarget.sqf and put the following code into it: if (restcaller isEqualto false) then { if (restrain isEqualto false) then { restrain=true; player setVariable ["restrain", true, true]; while { player getVariable ["restrain", false] } do { player playMove "AmovPercMstpSnonWnonDnon_EaseIn"; //Animation in if (((!alive player) || (player getVariable["onkill",FALSE]))) then { player setVariable ["restrain", false, true]; }; }; player playMoveNow "AmovPercMstpSnonWnonDnon_EaseOut"; //Animation out } else { restrain=false; player setVariable ["restrain", false, true]; //Set surrender to true player playMoveNow "AmovPercMstpSnonWnonDnon_EaseOut"; //Animation out }; }; restcaller = false; Using the script: You can either use addaction or a keyhandler to execute the script. When you execute the script the player pointed at by the cursor will be restrained (as long as he's in your configured range). Executing the script again will set the player free. If you have any questions or need help with your mission feel free to ask! Cheers Puffin
  10. Hi all. In spotrep 00064 changelog, I saw the following: Added: It is now possible to transport non-vehicle objects in vehicles (via scripting only) There are no explanations or further mentions of this. Does anyone know what it is and how it is supposed to work ?
  11. Hi, looking for a scripter to solve this Flowchart Theoretical Framework', via use of scripts. I am a videographer, not a scripter or anything technical. Basically, using what apex has given us, have put down a load of modules and triggers in a planned manner, all related around tasks and briefings, along with scripts within triggers filling in the gaps which will make the changes when certain conditions are met. The hypothesis is that these modules should be able to add up/correlate so an objective can either be completed or failed, with the (missing) script in triggers making the missing links. Why do i not do it? Because 1) Not a scripter 2) It would take me a decade to crack it If you take it on and crack it; - include a 'noob' definition of how it works - Add me on steam - Will give you credit in my video for theory, with possibly more rewards Check the link for a image of the theory, along with mission.sqm https://www.dropbox.com/s/e4kc066vn329dsz/Theory.png?dl=0
  12. I need to force bout not to move because i am generating many boats and some of them just swim away. I have tried : doStop _veh; _veh forceSpeed 0; but both unsucesfull I found only one thing witch is preventing boat from moving: _veh enableSimulation false; but this makes player screen black and player is not able to leave the vehicle my fix with eventHandler was not working as well _veh addEventHandler ["GetIn",{ _veh enableSimulation true;}]; Looks like because Event GetIn is not working while : _enableSimulation false; Thx for any help
  13. Hello, since I searched way to long to find a working keyhandler for my mission, I want to share my results with you! ******************************** Put the following code in your init.sqf: execVM "keyhandler.sqf"; in your main mission folder create a file called keyhandler.sqf and put the following code in it waitUntil {!isNull(findDisplay 46)}; (findDisplay 46) displaySetEventHandler ["KeyDown","_this call keyspressed"]; keyspressed = { _keyDik = _this select 1; _shift =_this select 2; _ctrl = _this select 3; _alt = _this select 4; _handled = false; switch (_this select 1) do { case 23: {//I key if (_shift) then { execVM "YOURSCRIPT"; }; if (_ctrl) then { execVM "YOURSCRIPT"; }; }; case 22: {//U key if (_shift) then { execVM "YOURSCRIPT"; }; }; _handled; }; It's pretty self explanatory just replace YOURSCRIPT with the path to your script. The number behind case is the key as shown in this list. If you have any questions feel free to ask! Cheers Puffin
  14. hey guys, i have created a gamemode for dedicated servers, but right now its not possible to continue it after the server shut down. Before we tested on a dedicated server, the mission was meant to be hosted directly from arma, so we could hit "save & exit" but that obviously didnt work. Here comes my question: what stuff needs to be stored in my database and what gets saved by arma? There are quite some scripts with many variables that need to be saved, as well as the position of vehicles on the map and their condition. Hope you guys can help me. Thanks in advance
  15. I am looking to see if there is a way using a script that allows a player that has a Tool-Kit in their inventory to deploy a bike. I'm not very experienced with scripting or anything so i don't know if this is even possible.
  16. I am having a bit of an issue with something I tried to do extensive research on. I am trying to make some preset vehicles that the Zeus can edit, start out with being able to respawn on position. When I use a Vehicle Respawn module placed in the editor, and sync that module to an Add Editable Objects module for Zeus, the vehicles aren't editable even if the vehicles themselves were added to the Add Editable Objects module. Only if I remove the Vehicle Respawn module, and keep the vehicles synced to the Add Editable Objects can the Zeus edit the vehicles. I need some alternatives to fix it, if you can help me find a way to make any of my ideas work, I would most appreciate it! Try to make it so any vehicles spawned by the Vehicle Respawn module will be added for the Zeus to edit. Make it so if the Zeus deletes the Vehicle Respawn module, have all the vehicles associated with it delete. A script/initialize string that will enable/set the respawn option for vehicles to the On current position for the Zeus. So that way the game starts with the vehicles being able to respawn on position. Have the vehicles use a respawn script that doesn't require the respawn module. I would appreciate anyone who could help me out!
  17. Hello, I want to make a PVP mission with guerrillas and AAF. I want to make guerrillas have a choice, to access certain crates with civilian clothing inside them any time they wish to. Then, as long as they remain dressed as a civ (they could go back to their base and get guerrilla gear) they should change faction to become a civ. If at any point they equip any weapons or gear other than civilian clothing they should switch back to guerrillas. (Could they possibly have their Task force radio's on to talk with other members even if they are civs without changing faction?) Using this AAF who shoot at civilian clothed players will lose the game. But as I mentioned, the civs shouldnt have any military gear on them, because then in theory player guerrillas would just be dressed as civs with guns, punishing the AAF for killing them using the game's mechanics while they can do whatever they want. I am a noob when it comes to scripting... Any advice?
  18. Hello, I am looking to make a combat Alts life RPG. I would like to do most of the placing of objects myself and a bit of coding but ill need quite a bit of help if anyone knows scripting and functions inside and out contact me through bohemia interactive messages. What I am looking for is someone who can code all the essentials for a very militarised Altis Life RPG. Some of the jobs include; Jobs; truck missions, drug runs, bounties, police/rebel/army/civs and many items such as spike strips etc.
  19. Hello everyone, I started editing and scripting on Arma since March / April. After some creations of missions, I felt the need to build a framework to regain my developer habits. So far we had taken over the framework f3 that we had adapted. For the time being, we are reviewing the whole system. I would like to solicit you because I want to take a good habit and do a good job and can be, in a future that I hope close, make the community benefit from a flexible framework, powerful, easy to use even for beginners. We also have a rather nice reference project to play. Currently in French but we will translate it later. This implementation creates a battle zone where 300 units compete in real time. However, if you do not have a powerful machine, I advise you to go through a server. This should please you. Just before you provide the links, I warn you that the code is under development and that it still takes time to make it all mature. So I ask the community to follow the development, in order to provide advice. I also ask you to kindly test the reference mission. Of course, if you are interested by the subject ;-) Framework implementation https://github.com/RedBelette/TGV_MissionFramework_Template Wiki https://github.com/RedBelette/TGV_MissionFramework_Template/wiki (update required) Reference implementation https://github.com/RedBelette/RED_co9_op_anger_of_the_west.Kunduz (Youtube video = Milsim Live from beta5) Another reference implementation https://github.com/RedBelette/RED_co9_virgin_territory.kobbvatn (Youtube video = Cutscene) Client / Server Timer Demo https://github.com/RedBelette/RED_EX_TIMER.VR PS: No license, made what you want about the code, it's gift ;-) Bonus: An interteam was made with 45 players on the Kunduz map. More than 400 units were created from the mission. This proves me that the TGV framework is rather stable;) Here is a video summary made by the team 126RIM. Update This project is canceled and will no longer be updated. In fact, it is completely reworked in an addon named "Red Framework". Much more convenient for updates. A Beta version is available here: http://steamcommunity.com/sharedfiles/filedetails/?id=1226877632 A technical demo here : http://steamcommunity.com/sharedfiles/filedetails/?id=1230760053 We need a lot of Beta Tester. Are you interested ? Regards, RedBelette
  20. Hey guys, i am trying apply selected post processing effects only to the player that called the script. So far I found this function BIS_fnc_setPPeffectTemplate which allows me to execute a post processing effect from the CfgPostprocessTemplates. The problem with that is that it only lets me execute the arma3 vanilla ppeffects. My question is if there's a way to define a custom template or any other way i am missing to execute the effect locally. Thanks in advance!
  21. ok some im having trouble with my custom huron code it says when i start arma 3 up "S instead of ;" can you help me class CfgPatches { class Iron_Skulls_Huron { units[]={}; weapons[]={}; requiredVersion=0.1; requiredAddons[]={}; }; }; class CfgVehicleClasses { class Iron_Skulls_Huron { displayName="Iron Skulls Huron"; }; }; class CfgVehicles { class B_Heli_Transport_03_F; class Iron Skulls Huron: B_Heli_Transport_03_F { author="Clumsy Baron"; _generalMacro="B_Heli_Transport_03_F"; displayName="Iron Skulls Huron"; vehicleClass="Iron_Skulls_Huron"; faction="BLU_F"; crew="B_Helipilot_F"; availableForSupportTypes[]={"Drop","Transport"}; side=1; scope=2; attendant=1; picture="-"; icon="-"; threat[]={0,0,0}; class TransportItems { class _xx_FirstAidKit { name="FirstAidKit"; count=20; }; class _xx_Medikit { name="Medikit"; count=10; }; }; hiddenSelectionsTextures[]={"\Arma3_Iron_Skulls_PMC_Huron\Data\pmc_huron_ext01_co.paa","\Arma3_Iron_Skulls_PMC_Huron\Data\pmc_huron_ext02_co.paa"}; }; }; class cfgMods { author="Clumsy Baron"; timepacked="1437495037"; };
  22. As the title says I am trying to do a check if a trigger area is completely empty before spawning an object via an addAction. Here is the addAction on an object: this allowDamage false; this enableSimulation disable; this addAction ["Get Wheel","scripts\boxWheel.sqf"]; and here is the script: wheelBox = [getPos boxSpawn,0,"ACE_Wheel",WEST] call BIS_fnc_spawnVehicle; the name of my trigger is: boxTrigger_01 How do I set it to check if the trigger area is completely empty before executing the addAction/script?
  23. Missing Semicolon?

    I'm trying to run the command "END1" BIS_fnc_endnission; And it gives me the error "Missing ;". Anyone know what I can do? I'm not a very experienced scripter.
  24. I am using LARS compositions spawn-er and it has stopped working. The creator is not currently responding and hasn't be active since July. here is the error message _wp |#|setWaypointCombatMode _mode; _wp setWayp... Error Foreign error: Unknown enum value: "" File LaRs\Functions\fn_createComp.sqf [LaRs_fnc_createComp], line 1201 ----------------------------------------------------------------------------------------------------------------------------- here is the code from LaRs\Functions\fn_createComp.sqf. Line 1201 is highlighted. Let me know if the whole file is required. //***** //WAYPOINTS //***** private _fnc_spawnWaypoint = { private [ "_position", "_ATLOffset", "_placement", "_compRadius", "_mode", "_formation", "_speed", "_behaviour", "_description", "_condition" ]; params[ "_cfg", "_group" ]; _position = getArray( _cfg >> "position" ); _ATLOffset = getNumber( _cfg >> "atlOffset" ); //_position = [ _position, _ATLOffset ] call _fnc_getPosition; _position = [ objNull, _position, [0,0,0], _ATLOffset ] call _fnc_setPositionandRotation; _placement = getNumber( _cfg >> "placement" ); _compRadius = getNumber( _cfg >> "completitionRadius" ); _mode = getText( _cfg >> "combatMode" ); _formation = getText( _cfg >> "formation" ); _speed = getText( _cfg >> "speed" ); _behaviour = getText( _cfg >> "combat" ); _description = getText( _cfg >> "description" ); _condition = [ ( _cfg >> "expCond" ), "TXT", "true" ] call _fnc_getCfgValue; //TODO: does this need defering private [ "_onAct", "_name", "_script", "_timeout", "_show", "_type" ]; _onAct = getText( _cfg >> "expActiv" ); _name = getText( _cfg >> "name" ); _script = getText( _cfg >> "script" ); _timeout = [ getNumber( _cfg >> "timeoutMin" ), getNumber( _cfg >> "timeoutMid" ), getNumber( _cfg >> "timeoutMax" ) ]; _show = getText( _cfg >> "showWP" ); _type = getText( _cfg >> "type" ); private [ "_effectCondition", "_effectSound", "_effectVoice", "_effectSoundEnvironment", "_effectMusic", "_effectTitle", "_wp" ]; _effectCondition = getText( _cfg >> "Effects" >> "condition" ); //TODO: does this need defering _effectSound = getText( _cfg >> "Effects" >> "sound" ); _effectVoice = getText( _cfg >> "Effects" >> "voice" ); _effectSoundEnvironment = getText( _cfg >> "Effects" >> "soundEnv" ); _effectMusic = getText( _cfg >> "Effects" >> "track" ); _effectTitle = getText( _cfg >> "Effects" >> "title" ); _wp = _group addWaypoint[ ASLToATL _position, _placement, count waypoints _group, _name]; _wp setWaypointType _type; _wp setWaypointCompletionRadius _compRadius; _wp setWaypointCombatMode _mode; _wp setWaypointFormation _formation; _wp setWaypointSpeed _speed; _wp setWaypointBehaviour _behaviour; _wp setWaypointDescription _description; _wp setWaypointStatements[ _condition, _onAct ]; _wp setWaypointTimeout _timeout; _wp showWaypoint _show; _wp setWaypointScript _script; //TODO: Effects need testing _wp setEffectCondition _effectCondition; _wp setSoundEffect [ _effectSound, _effectVoice, _effectSoundEnvironment, "" ]; _wp setMusicEffect _effectMusic; switch ( true ) do { case ( isClass( missionConfigFile >> "RscTitles" >> _effectTitle ) ) : { _wp setTitleEffect [ "RES", "", _effectTitle ]; }; case ( isClass( configFile >> "CfgTitles" >> _effectTitle ) ) : { _wp setTitleEffect [ "OBJECT", "", _effectTitle ]; }; default { if ( _effectTitle != "" ) then { _wp setTitleEffect [ "TEXT", "PLAIN", _effectTitle ]; }; }; }; _wp }; //**********
  25. Hi all, I'm trying to do something simple in the editor. - Have a drone fly to a point indicated by a waypoint - Once it arrives at the waypoint, have it drop leaflets. I know this is done by using the fire command. I would like to use something like this fire "Bomb_Leaflets"; in the "on activation" call for a waypoint, so that I don't have to have a variable name for each one of the drones I launch ( Would be nice to be able to put this functionality into a script that I can use repeatedly). The problem is that this obviously isn't working, and upon checking the name of the object with hint format ["waypoint completed, this is: %1, this name is %2", this, name this]; The result is either, with no variable name given to the object, "this is R Alpha 1-1:1" or if I give a variable name to the drone it attaches a capital D to the end of the variable name, as in: "this is {variable name of the drone}D". The name of the drone each time (name this) prints out as "Jeremy Wilson". Any help is appreciated, and sorry if this is a very basic thing, but I cannot find the answers to this for the life of me.