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 Reforger
    • Vigor
    • DAYZ
    • ARMA 3
    • ARMA 2
    • YLANDS
  • MOBILE GAMES
    • ARMA MOBILE OPS
    • MINIDAYZ
    • ARMA TACTICS
    • ARMA 2 FIRING RANGE
  • BI MILITARY GAMES FORUMS
  • BOHEMIA INCUBATOR
    • PROJECT LUCIE
  • OTHER BOHEMIA GAMES
    • ARGO
    • TAKE ON MARS
    • 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
  • Die Hard OFP Lovers' Club's Topics
  • ArmA Toolmakers's Releases
  • ArmA Toolmakers's General
  • Japan in Arma's Topics
  • Arma 3 Photography Club's Discussions
  • The Order Of the Wolfs- Unit's Topics
  • 4th Infantry Brigade's Recruitment
  • 11th Marine Expeditionary Unit OFFICIAL | 11th MEU(SOC)'s 11th MEU(SOC) Recruitment Status - OPEN
  • Legion latina semper fi's New Server Legion latina next wick
  • Legion latina semper fi's https://www.facebook.com/groups/legionlatinasemperfidelis/
  • Legion latina semper fi's Server VPN LEGION LATINA SEMPER FI
  • Team Nederland's Welkom bij ons club
  • Team Nederland's Facebook
  • [H.S.O.] Hellenic Special Operations's Infos
  • BI Forum Ravage Club's Forum Topics
  • Exilemod (Unofficial)'s General Discussion
  • Exilemod (Unofficial)'s Scripts
  • Exilemod (Unofficial)'s Addons
  • Exilemod (Unofficial)'s Problems & Bugs
  • Exilemod (Unofficial)'s Exilemod Tweaks
  • Exilemod (Unofficial)'s Promotion
  • Exilemod (Unofficial)'s Maps - Mission Files
  • TKO's Weferlingen
  • TKO's Green Sea
  • TKO's Rules
  • TKO's Changelog
  • TKO's Help
  • TKO's What we Need
  • TKO's Cam Lao Nam
  • MSOF A3 Wasteland's Server Game Play Features
  • MSOF A3 Wasteland's Problems & Bugs
  • MSOF A3 Wasteland's Maps in Rotation
  • SOS GAMING's Server
  • SOS GAMING's News on Server
  • SOS GAMING's Regeln / Rules
  • SOS GAMING's Ghost-Town-Team
  • SOS GAMING's Steuerung / Keys
  • SOS GAMING's Div. Infos
  • SOS GAMING's Small Talk
  • NAMC's Topics
  • NTC's New Members
  • NTC's Enlisted Members
  • The STATE's Topics
  • CREATEANDGENERATION's Intoduction
  • CREATEANDGENERATION's HAVEN EMPIRE (NEW CREATORS COMMUNITY)
  • HavenEmpire Gaming community's HavenEmpire Gaming community
  • Polska_Rodzina's Polska_Rodzina-ARGO
  • Carrier command tips and tricks's Tips and tricks
  • Carrier command tips and tricks's Talk about carrier command
  • ItzChaos's Community's Socials
  • Photography club of Arma 3's Epic photos
  • Photography club of Arma 3's Team pics
  • Photography club of Arma 3's Vehicle pics
  • Photography club of Arma 3's Other
  • Spartan Gamers DayZ's Baneados del Servidor
  • Warriors Waging War's Vigor
  • Tales of the Republic's Republic News
  • Operazioni Arma Italia's CHI SIAMO
  • [GER] HUSKY-GAMING.CC / Roleplay at its best!'s Starte deine Reise noch heute!
  • empire brotherhood occult +2349082603448's empire money +2349082603448
  • NET88's Twitter
  • DayZ Italia's Lista Server
  • DayZ Italia's Forum Generale

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Yahoo


Jabber (xmpp)


Skype


Biography


Twitter


Google+


Youtube


Vimeo


Xfire


Steam url id


Raptr


MySpace


Linkedin


Tumblr


Flickr


XBOX Live


PlayStation PSN


Origin


PlayFire


SoundCloud


Pinterest


Reddit


Twitch.Tv


Ustream.Tv


Duxter


Instagram


Location


Interests


Interests


Occupation

Found 513 results

  1. I am trying to return 'true' to the function if the "Attacking Button" is pressed and 'false' if the "Defending Button" is pressed. if (dialog) then {closeDialog 0}; _attackOrDefend = createDialog "AttackOrDefend"; // (findDisplay 997) displayAddEventHandler ["KeyDown", {if ((_this select 1) isEqualTo 1) then { true }}]; // Disable ESC Key _attackingButton = ((findDisplay 997) displayCtrl 1600); // Attacking Button _defendingButton = ((findDisplay 997) displayCtrl 1601); // Defending Button _return = nil; /* Find return code ... */ waitUntil {!(isNil "_return")}; _return; Using functions such as ButtonSetAction do not allow me return true or false as they are not in the scope of the function: _attackingButton buttonSetAction "_return = true"; _defendingButton buttonSetAction "_return = false"; Using the work around that Kronzky provides only allows you to use variables already defined in the script to the action but not from the action to the script: _foo = "foo"; buttonSetAction [100, format["hint '%1 bar'", _foo]]; Please Help! I have destroyed the wiki looking for ways.
  2. Hopefully someone can help me, and I think this is probably quite simple, I just can't seem to figure it out tonight! I was hoping that there was a way to tie the number of a team's respawn tickets to the number of items in a crate. e.g. there are 4 medkits in a crate so they have 4 respawn tickets. If they add 2, they have 6 respawn tickets and if they remove 3 they only have 3 respawn tickets remaining. Any help with this would be much appreciated! Cheers!
  3. I have modified a previously made script to be called run a progress bar across the screen and as long as the script was not aborted before "time" reached the "total time" then the script would return true and otherwise return false. My problem comes when someone wants to exit the script, they cant and are forced to sit through the entire progress bar. I am trying to fail the script by pressing the ESC Key. I have simply made "hint 'ESC Key'" for debugging. /* Author: HallyG Edited by: Acoward Edited by: NumbNutsJunior Description: Draws a progress bar to visualise an action taking place. Parameter(s): 0: [STRING] - Text to display 1: [SCALAR] - Total Time 2: [STRING] - Animation name - (Default: "AinvPknlMstpSnonWnonDnon_medic_1") Returns: [BOOLEAN] Example: _a = ["Eating...", 10, "Animation ..."] call HGF_fnc_progressBar; if (_a) then { ... result ... }; */ params [["_text","Test",[""]],["_actionTime",10,[0]],["_animation","AinvPknlMstpSnonWnonDnon_medic_1",[""]]]; private ["_startTime","_totalTime","_progressBar","_progressText","_return"]; if (player getVariable ["isBusy",false]) exitWith {}; // IF PLAYER IS BUSY ALREADY, EXIT player setVariable ["isBusy",true,true]; // SETS THE PLAYER'S STATUS TO BUSY disableSerialization; ("HGF_progressBar" call BIS_fnc_rscLayer) cutRsc ["HGF_ProgressBar", "PLAIN", 0.001, false]; // display PROGRESS BAR _progressBar = ((uiNamespace getVariable "HGF_ProgressBar") displayCtrl 22202); _progressBar progressSetPosition 0; _progressText = ((uiNamespace getVariable "HGF_ProgressBar") displayCtrl 22201); _progressText ctrlSetText _text; _startTime = time; // Start Time _totalTime = time + _actionTime; // Expected finish time _return = true; _eventHandler = (findDisplay 46) displayAddEventHandler ["KeyDown", { if ((_this select 1) isEqualTo 1) then {hint "ESC Pressed"}; true }]; waitUntil { _progressBar = ((uiNamespace getVariable "HGF_ProgressBar") displayCtrl 22202); _progressBar progressSetPosition ((time - _startTime)/_actionTime); // Sets the progress position of the progress bar. if (animationState player != _animation) then { player switchMove _animation; // PLAYS ANIMATION IF PLAYER IS NOT PLAYING THE ANIMATION player playMoveNow _animation; }; (!alive player) || (time >= _totalTime) || ((vehicle player) != player)// if player is dead or passed end time, exit }; player setVariable ["isBusy",false,true]; // SETS THE PLAYER'S STATUS TO NOT BUSY if ((!alive player) || (time <= _totalTime) || ((vehicle player) != player)) then { _return = false; _progressText ctrlSetText ""; // ACTION NOT COMPLETED _progressBar progressSetPosition 0; }; (findDisplay 46) displayRemoveEventHandler ["KeyDown", _eventHandler]; player switchMove ""; // Resets to default animation ("HGF_progressBar" call BIS_fnc_rscLayer) cutText ["", "PLAIN"]; // HIDES PROGRESS BAR _return;
  4. Komesar_Ristanovic

    Problem with tanks

    Hello i found long ago one great addon for arma 2 so i decide to import it to arma 3 and it work. But problem is when i drive a tank and when try to use break or just stop holding move key vehicle raises the rear and can overturn on other side. How to fix this problem ? By the way other staff like trucks and light mechanized armor dont have this problem. If somebody know how to fix this pleas help
  5. 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.
  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. 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
  14. 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!
  15. 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?
  16. 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.
  17. 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
  18. 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!
  19. 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"; };
  20. 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?
  21. Pvt. Sparkleshoes

    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.
  22. 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 }; //**********
  23. 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.
  24. 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!
  25. 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.
×