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


Forums

  • BOHEMIA INTERACTIVE
    • BOHEMIA INTERACTIVE - NEWS
    • BOHEMIA INTERACTIVE - JOBS
    • BOHEMIA INTERACTIVE - GENERAL
  • FEATURED GAMES
    • ARMA 3
    • DAYZ
    • TAKE ON MARS
    • ARMA 2
    • ARGO
    • YLANDS
  • MOBILE GAMES
    • ARMA MOBILE OPS
    • MINIDAYZ
    • ARMA TACTICS
    • ARMA 2 FIRING RANGE
  • BI MILITARY GAMES FORUMS
  • BOHEMIA INCUBATOR
  • OTHER BOHEMIA GAMES
    • TAKE ON HELICOPTERS
    • CARRIER COMMAND: GAEA MISSION
    • ARMA: ARMED ASSAULT / COMBAT OPERATIONS
    • ARMA: COLD WAR ASSAULT / OPERATION FLASHPOINT
    • IRON FRONT: LIBERATION 1944
    • BACK CATALOGUE
  • OFFTOPIC
    • OFFTOPIC
  • ArmA Toolmakers's Releases
  • ArmA Toolmakers's General
  • Die Hard OFP Lovers' Club's Topics
  • Japan in Arma's Topics

XBOX Live


PlayStation PSN


Origin


PlayFire


SoundCloud


Pinterest


Reddit


Twitch.Tv


Ustream.Tv


Duxter


Instagram


Location


Interests


Interests


Occupation

Found 167 results

  1. 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?
  2. 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
  3. 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 ;-) Regards, RedBelette
  4. 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
  5. 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?
  6. 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.
  7. 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
  8. 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 }; //**********
  9. 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.
  10. 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"; };
  11. Hello! Tell me how to get the size of the object. For example, I need to know the dimensions of the "trigger" envelope, get the parameter width and length. The documentation did not find such a resolution. Please, help!
  12. So i'm trying to make a script where a Crate is empty but has the "AddAction" command to give certain loadouts. However i'm trying to do it the easy way by exporting the loadouts from VA and just have the player call the whole script to give them the new gear... In the init line of the crate i put this addaction ["Give Rifleman Loadout", "Rifleman.sqf"]; Then for the rifleman.sqf script i pasted the exported arsenal loadout into there hoping it would work and added in a (_this =_this = ["give rifleman loadout", [_this] select 1];) to target the caller for the script to execute on. for reference _this = ["give rifleman loadout", [_this] select 1]; removeAllWeapons this; removeAllItems this; removeAllAssignedItems this; removeUniform this; removeVest this; removeBackpack this; removeHeadgear this; removeGoggles this; comment "Add containers"; this forceAddUniform "rhs_uniform_FROG01_wd"; for "_i" from 1 to 10 do {this addItemToUniform "ACE_fieldDressing";}; this addItemToUniform "ACE_EarPlugs"; for "_i" from 1 to 10 do {this addItemToUniform "ACE_morphine";}; this addItemToUniform "ACE_MapTools"; this addItemToUniform "ACE_microDAGR"; this addItemToUniform "ACE_Flashlight_XL50"; this addItemToUniform "rhs_mag_m18_purple"; this addVest "rhsusf_spc_teamleader"; for "_i" from 1 to 6 do {this addItemToVest "rhs_mag_30Rnd_556x45_M855A1_Stanag_No_Tracer";}; for "_i" from 1 to 6 do {this addItemToVest "rhs_mag_M433_HEDP";}; for "_i" from 1 to 2 do {this addItemToVest "rhs_mag_an_m8hc";}; for "_i" from 1 to 2 do {this addItemToVest "rhs_mag_m67";}; this addItemToVest "rhs_mag_mk84"; this addItemToVest "rhs_mag_mk3a2"; for "_i" from 1 to 3 do {this addItemToVest "rhsusf_mag_17Rnd_9x19_FMJ";}; this addBackpack "rhsusf_falconii"; this addItemToBackpack "rhsusf_acc_nt4_black"; this addItemToBackpack "rhsusf_acc_anpeq15_bk"; this addItemToBackpack "acc_flashlight_pistol"; this addItemToBackpack "rhsusf_ANPVS_15"; this addItemToBackpack "rhsusf_acc_omega9k"; for "_i" from 1 to 4 do {this addItemToBackpack "rhs_mag_30Rnd_556x45_M855A1_Stanag_No_Tracer";}; for "_i" from 1 to 3 do {this addItemToBackpack "rhs_mag_M585_white";}; for "_i" from 1 to 3 do {this addItemToBackpack "rhs_mag_m715_Green";}; for "_i" from 1 to 3 do {this addItemToBackpack "rhs_mag_m713_Red";}; for "_i" from 1 to 3 do {this addItemToBackpack "rhs_mag_m714_White";}; this addItemToBackpack "Laserbatteries"; this addHeadgear "rhsusf_lwh_helmet_marpatwd"; this addGoggles "rhsusf_oakley_goggles_blk"; comment "Add weapons"; this addWeapon "rhs_weap_mk18_m320"; this addPrimaryWeaponItem "rhsusf_acc_ACOG_RMR"; this addWeapon "rhsusf_weap_glock17g4"; this addWeapon "Laserdesignator"; comment "Add items"; this linkItem "ItemMap"; this linkItem "ItemCompass"; this linkItem "ACE_Altimeter"; this linkItem "ItemRadio"; this linkItem "ItemGPS"; Thats the whole Rifleman.sqf Script and it says that "this" is an undefined variable... Please note i'm not well versed in scripting, hell i'm starting out mostly, so i don't even know what i'm doing wrong.
  13. 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.
  14. so im working on a mod and when i spawn the helicopter in editor it says cannot load "somthing somthing_co.paa so yh any help will be appreciated enum { OrdinalEnum = 2, destructengine = 2, destructdefault = 6, destructwreck = 7, destructtree = 3, destructtent = 4, stabilizedinaxisx = 1, stabilizedinaxesxyz = 4, stabilizedinaxisy = 2, stabilizedinaxesboth = 3, destructno = 0, stabilizedinaxesnone = 0, destructman = 5, destructbuilding = 1 }; class DefaultEventhandlers; class CfgPatches { class Iron_Skulls_PMC_Ghosthawk { units[] = {}; weapons[] = {}; requiredVersion = 0.1; requiredAddons[] = {}; }; }; class WeaponFireGun; class WeaponCloudsGun; class WeaponFireMGun; class WeaponCloudsMGun; class CfgVehicles { class B_Heli_Transport_01_F; class Iron_Skulls_PMC_Ghosthawk_Urban : B_Heli_Transport_01_F { displayName = "Iron Skulls PMC Ghosthawk Urban"; author = "Clumsy Baron"; crew = "Iron_Skulls_PMC_Heli_Pilot_Urban"; hiddenSelectionsTextures[] = {"Arma3_Iron_Skulls_PMC_Air\Data\pmc_ghosthawk_ext01_urban_co.paa", "Arma3_Iron_Skulls_PMC_Air\Data\pmc_ghosthawk_ext02_urban_co.paa"}; }; class Iron_Skulls_PMC_Ghosthawk_Desert : B_Heli_Transport_01_F { displayName = "Iron Skulls PMC Ghosthawk Desert"; author = "Clumsy Baron"; crew = "Iron_Skulls_PMC_Heli_Pilot_Desert"; hiddenSelectionsTextures[] = {"Arma3_Iron_Skulls_PMC_Air\Data\pmc_ghosthawk_ext01_desert_co.paa", "Arma3_Iron_Skulls_PMC_Air\Data\pmc_ghosthawk_ext02_desert_co.paa"}; }; class Iron_Skulls_PMC_Ghosthawk_Jungle : B_Heli_Transport_01_F { displayName = "Iron Skulls PMC Ghosthawk Jungle"; author = "Clumsy Baron"; crew = "Iron_Skulls_PMC_Heli_Pilot_Jungle"; hiddenSelectionsTextures[] = {"Arma3_Iron_Skulls_PMC_Air\Data\pmc_ghosthawk_ext01_jungle_co.paa", "Arma3_Iron_Skulls_PMC_Air\Data\pmc_ghosthawk_ext02_jungle_co.paa"}; }; class Iron_Skulls_PMC_Ghosthawk_Snow : B_Heli_Transport_01_F { displayName = "Iron Skulls PMC Ghosthawk Snow"; author = "Clumsy Baron"; crew = "Iron_Skulls_PMC_Heli_Pilot_Snow"; hiddenSelectionsTextures[] = {"Arma3_Iron_Skulls_PMC_Air\Data\pmc_ghosthawk_ext01_snow_co.paa","Arma3_Iron_Skulls_PMC_Air\Data\pmc_ghosthawk_ext02_snow_co.paa"}; }; class Iron_Skulls_PMC_Ghosthawk_Woodland : B_Heli_Transport_01_F { displayName = "Iron Skulls PMC Ghosthawk Woodland"; author = "Clumsy Baron"; crew = "Iron_Skulls_PMC_Heli_Pilot_Woodland"; hiddenSelectionsTextures[] = {"Arma3_Iron_Skulls_PMC_Air\Data\pmc_ghosthawk_ext01_woodland_co.paa", "Arma3_Iron_Skulls_PMC_Air\Data\pmc_ghosthawk_ext02_woodland_co.paa"}; }; };
  15. I'm New to this so I'm not up on the terminology so I'm having a hard time finding; if it even exists, the functionality to have a mission file that loads in pre built AO's from script files. My thinking is that i have this awesome editor that allows me to place all the units, elements, triggers, functionality, etc... Why cant I simply grab all those elements and export them to a script file, rather than create a script file and manually type in all all of it to spawn in and what not. I am trying to avoid using the AI dynamic random spawner tools. Id like to put the time in to create AO's, have them be called based on a trigger and then have them unloaded on trigger. if this doesn't exist then for the love mike I'm willing to work with someone to create it.
  16. "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:
  17. VBS3 Scripting editor help needed

    Hello everybody! I am a research student working on his final thesis on a Helicopter Simulator implemented in VBS3. I would need to do some script in order to create a training field in VBS3, something like targets appearing that responde when you pass throught. I was used working with unity and there it´s easy to access the editor and code there. Here in VBS3 I think it´s different, I have seen that there is the possibility of writing and external function and name it with .sqf extension and then call it, but where do I call it in VBS3? Isn´t is possible to write some code directly inside VBS3? Are there any other ways of creating interaction between things without scripting? I wish a good day to all of you, Marco Gotelli
  18. Hello! So, i have seen that some missions have a Virtual Arsenal in which there are already some set loadouts, for example, when you get close to it you will get the "Arsenal" option on the mouse wheel menu, but also sometimes you'll find things like "Rifleman"; "AT Soldier", "Pilot" and such, when you select any of them you get a loadout given by the server (not the ones you have saved). I'm trying to do this but i can't get it to work, i know how to export a certain loadout to a text file or to another unit but i have no idea how to make it like that. NOTE: I do use CBA_A3 and ACE mods but i guess there should be no problem with that as long as the players joining the server have them as well.
  19. Hello, I'm trying to make heads or tails of getting around an error that I'm getting when attempting to make Radio Channels to specific units to private communication between Zeus to Squad Leaders. The error is that the variables are undefined for the radioChannelCreate when the unit with the variable does not exist. I'm thinking I will need a !isnull check to an array but I'm unsure how to implement this as I am still very new to Arma scripting. Here is the code I am using, Most of this is from a script I found on another post: if(isServer) then { west_channel = radioChannelCreate [[0, 0.2, 1, 1], "GM-Bluefor", "Game Master", [bz1,bz2,mz1,mz2]]; east_channel = radioChannelCreate [[1, 0, 0.2, 1], "GM-Redfor", "Game Master", [rz1,mz1,mz2]]; independent_channel = radioChannelCreate [[0, 1, 0.2, 1], "GM-Independent", "Game Master", [iz1,mz1,mz2]]; RADIO_fnc_manage = { private["_unit","_channel","_bool"]; _unit = [_this,0,ObjNull,[ObjNull]] call BIS_fnc_param; _bool = [_this,1,false,[false]] call BIS_fnc_param; _channel = [_this,2,0,[0]] call BIS_fnc_param; //Series of checks? if(isNull _unit) exitWith {}; //Null unit if(_channel < 1) exitWith {}; //No channels below 1 should be passed. switch (_channel) do { case 1: { if(_bool) then {west_channel radioChannelAdd [_unit];} else {west_channel radioChannelRemove [_unit];};}; case 2: { if(_bool) then {east_channel radioChannelAdd [_unit];} else {east_channel radioChannelRemove [_unit];};}; case 3: { if(_bool) then {independent_channel radioChannelAdd [_unit];} else {independent_channel radioChannelRemove [_unit];};}; }; }; }; Variables "bz1, bz2, mz1, mz2, iz1, rz1" is referencing unit's I've placed within Eden Editor with those variables tagged to them. E.g, "bz1" = Blufor Zeus or "mz1" = Master Zeus The intention of this script is to allow private communication from Squad leaders. (In this case bz1,bz2,iz1,rz1) to have separate channels to the two Master Zeus's which will be acting as "game masters" That is not seen by anyone outside of the units aforementioned. > I am using RHS, ACE, CBA Pack, ARES:Achilles and TFAR mod's as well.
  20. In our unit, we have a bunch of new recruits that we want to solely run prescribed load outs, which I have figured out and done. Now, we want people that have successfully accomplished a certain training to have full access to an arsenal box. I understand the white-listing process for objects within an arsenal, but I was wondering if perhaps there was a way to write in a way that only certain players, or slots even, could run a virtual arsenal when looking at a box in the similar fashion as the usual scroll and click for a universal access arsenal that you can put onto a box. My question is, whether by variable name of a unit/slot or by a list of whitelisted PIDs, can the VA system be limited to certain members on a server while others are forced to use the load-outs I have already scripted into the mission?
  21. Exit3DEN scripting ?

    Hello, I'm looking for some help (suggestions) in EDEN tunning. My problem is that when I press the ESC button (or exit from menu) the default input is focused on OK/Yes. By the "default input " I mean default action - the situation when You (even accidentally) press Enter or even the space button . This was, what used to happen to me and I want to change this behaviour, by setting the default action (after pressing enter/space) to NO/Cancel At the end thats the default behaviour of many good editors/IDEs I'm using in my work (for instance JAVA/Netbeans IDE, Php/JScript IDEs and so on) I know a bit about scripting (the sqf syntax/language), I use it in my missions, but never have done any 3DEN modifications . I've found (in documentation on 3DEN wiki) that there is an Action handler called Exit3DEN which is connected to the close eden dialog , but I have no idea how to script it (I haven't found any attribute descriptions, or solutions how to use them) . I've also read the whole 3DEN Eventhandler documentation page, but I coudn't find any Eventhandler which was connected explicite with the ExitEden Dialog Invocation (or maybe I missed something ?) So , I'm looking for a bit of help , maybe there is a person who know how to script this type of actions in 3DEN Thank You from advance 4 any kind of help markooff
  22. I need help with the below script. Problem: I read a post as far back as 2007 where units that enter combat mode and then get stuck in 'Aware' mode for the rest of mission (apart from combat / stealth of course). This issue is still present on A3. Once 'All Clear' is declared and my group goes back to safe mode, it actualy remains in AWARE mode, guns raised, looking for enemys.... i hate this when not leading a group and ai leads my group. Aware never ends. I tried expriements with three simple radio triggers setting my group to 'COMBAT' 'SAFE' or 'CARELESS' Selecting combat, safe, combat, safe still made the group stay in aware while safe mode was active, so switching on / off did not work. However, forcing mode to CARELESS allowed my units to start walking normally, patrol style, guns down etc. Objective: I am trying to create a script that creates the illusion of safe mode, but is actually CARELESS untill either: a) enemys are in eye sight b) knowsabout value is above zero (unreliable but a back up check) c) my ai led group is surpressed by enemy gunfire d) a bullet is detected close to the player. e) enemy count is also above zero within _radius. But without giving away to the player ai led group. The below script actually works o.k to a degree, no major performance lag despite it checking 8 times a second (for bullets). but i need help, you will only need to browse the script to see why. bascially i need: All members of my group to check eyepos with all enemy units. _enemies = allUnits select {_x distance player < _radius AND side _x in _enemySides}; then testing count = count UNITS _enemies; flags up an array error, but _enemies = allunits (of the side east) so why this error? or should i say HOW do i select each unit of this unit and check its eyepos with all units in my group. Also I want the script run less times a second but of course to 'catch a passing bullet' check i need it running often, but any better ideas welcome. cheers. guys. p.s thx to several members of this forum for bits of the above script, as its very cut and paste.... some of its mine honestly! lol.
  23. I have run into a fairly frustrating problem involving AI helicopter pilots and squads attempting to board helicopters. The situation is as follows: I have a helicopter with its engine on waiting on the ground. Then, I order my squad members to board that helicopter, but as soon as I do the helicopter takes off, goes to about fifty meters, and then lands again to allow my squad members to enter. This also occurs with editor-based waypoints. As soon as an AI squad activates a 'Get In' waypoint, the AI flying the helicopter shoots up into the air and then lands again. Is there any way to force the AI helicopter to not do this, and stay on the ground instead? I have tried everything from synchronizing load and get-in waypoints (with a condition to wait for the units to get in), using disableAI "ALL", disabling the simulation of the helicopter's pilot, placing an invisible helipad directly under the helicopter, etc., but nothing works. Note that it is necessary for the helicopter's engine to be on to achieve the necessary effect as this takes place during a cutscene. Any suggestions would be greatly appreciated.
  24. And I want the trigger to activate "man1 setcaptive false" if I detonate the bomb while in that certain range. The range can be 300 for now. Optional: A trigger that activates the same thing but with a shorter range if I shoot any unsuppressed weapon
  25. I'm wondering if anyone can shed some light on something for me. I'm currently making a mission, and in it there are 2x RHS MH17s controlled by 2 separate UnitCapture recordings. Heli 1's start coordinates for UnitPlay are: 500.363,14694.7,77.4408 Heli 2's start coordinates for UnitPlay are: 505.172,14691.1,78.3909 They both spawn in different locations, but for some reason, upon spawning, crash into each other and go down in a ball of flames. Does anyone know why, and how I can stop it happening?
×