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
    • 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 Server tweaks
  • Exilemod (Unofficial)'s Promotion
  • Exilemod (Unofficial)'s Maps - Mission Files
  • TKO's Weferlingen
  • TKO's Chernarus
  • TKO's Livonia
  • TKO's Rules
  • TKO's Changelog
  • TKO's Help
  • TKO's What we Need
  • 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

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 301 results

  1. I need a easier way to spawn random units instead of individually pulling all classes from the in game editor and pasting it while adding quotations and commas like this: ["B_mas_med_Army_ENG_F", "B_mas_med_Army_EXP_F", "B_mas_med_Army_GL_F",]. I want to use a script that when called it will pull a random unit from a given side of a given type (infantry, land, air) and spawn them in a group. The group will be filled with random units. I also want it to pull units from mods that I download. I dont want to have to keep updating the script every time I download another unit mod. The mod MMC sandbox has no problem in doing this but I dont know how they did it.
  2. Greetings! Long time lurker, first time poster. I've tried my best to research and resolve this myself, but I'm completely at a loss right now. What am I trying to do? I'm making a sector control mission with AI support. The idea is that the AI will check an array of enemy-held sectors, then assign a waypoint to attack accordingly. For example: No enemy sectors? Defend the nearest friendly sector. (BIS_fnc_taskDefend) One enemy sector? Assign a waypoint to attack it. Two or more enemy sectors? Pick one from the closest two and assign a waypoint to attack. AI units invoke the script using a normal execVM command when they spawn: [this] execVM "scripts\ai\sectorTacticInfantry.sqf"; What's the issue? The script throws up multiple "undefined variable" errors, but I can't understand why as they've already been defined. For whatever reason, it's like the private variables are not being passed on to the code blocks below. Here's the script so you can take a look yourselves. I should point out that the "all_sectors" global variable is an array containing the sector module names (S1, S2, S3 etc.) defined in initServer.sqf. systemChat "DEBUG: Starting sector tactic."; [] spawn {while {true} do { _unit = (_this select 0); _grp = group (_this select 0); _grp_side = side (_this select 0); _enemy_sectors = []; _friendly_sectors = []; scopeName "start"; // Update arrays of sector ownership. { if !((_x getVariable "owner") == _grp_side) then { [_enemy_sectors, _x] call BIS_fnc_arrayPush; }; } forEach all_sectors; { if ((_x getVariable "owner") == _grp_side) then { [_friendly_sectors, _x] call BIS_fnc_arrayPush; }; } forEach all_sectors; if (count _enemy_sectors == 0) then {breakTo "noEnemySectors"}; if (count _enemy_sectors == 1) then {breakTo "oneEnemySector"}; if (count _enemy_sectors > 1) then {breakTo "multipleEnemySectors"}; while {true} do { scopeName "noEnemySectors"; // There's no enemy sectors. _grp = group (_this select 0); _grp call CBA_fnc_clearWaypoints; _nearest_friendly_sector = [_friendly_sectors, _grp] call BIS_fnc_nearestPosition; [_grp, _nearest_friendly_sector] call CBA_fnc_taskDefend; breakTo "defendLoop"; }; while {true} do { scopeName "oneEnemySectors"; // There's one enemy sector. grp call CBA_fnc_clearWaypoints; _target_sector = (enemy_sectors select 0); [_grp, _target_sector] call CBA_fnc_addWaypoint; breakTo "attackLoop"; }; while {true} do { scopeName "multipleEnemySectors"; // There's more than one enemy sector. _grp call CBA_fnc_clearWaypoints; _sortedenemy_sectors = [_enemy_sectors, [], { _unit distance _x }, "ASCEND"] call BIS_fnc_sortBy; _closestenemy_sectors = []; [_closestenemy_sectors, (_sortedenemy_sectors select 0)] call BIS_fnc_arrayPush; [_closestenemy_sectors, (_sortedenemy_sectors select 1)] call BIS_fnc_arrayPush; _target_sector = (selectRandom _closestenemy_sectors); [_grp, _target_sector] call CBA_fnc_addWaypoint; breakTo "attackLoop"; }; while {true} do { scopeName "defendLoop"; // Keep defending the point until an enemy takes a sector. _enemy_sectors = []; { if !((_x getVariable "owner") == _grp_side) then { [_enemy_sectors, _x] call BIS_fnc_arrayPush; }; } forEach all_sectors; if (count _enemy_sectors > 1) then {breakTo "start"}; sleep 1; }; while {true} do { scopeName "attackLoop"; // Keep attacking the point until it's ours. if ((_target_sector getVariable "owner") == _grp_side) then {breakTo "start"}; sleep 1; }; }; }; This is my most desperate hour. Help me, Obi-Wan Kenobi BIS Forums. You're my only hope. Thanks in advance, Mr Elusive
  3. Hey folks, I am currently developing a Coast Guard Addon for Arma 3. I already modded a Coast Guard Faction and Uniforms as well as Boats and a Helicopter, and now I want to add some special Objects. A rescue basket and a life raft. I am pretty good at making 3d Models of technical objects so that was no challenge. However I am not really good at scripting configs for Arma 3 and working with the Object Builder. So I could use your help. Here is a model of the rescue basket I made https://steamcommunity.com/sharedfiles/filedetails/?id=1862964052 I was able to implement it into Arma but I need to add some features and solve some problems with your help. Features I have to add: -basket floats on water (implemented) -basket can be slingloaded to a helicopter (implemented) -basket has 2 passenger "seats" one for the survivor sitting in the basket and one for the rescue swimmer hanging on the side of the basket (implemented) -basket has strobelights for night operation (not really implemented) -lights can be toggled Problems: -basket is static, it won't fall down if placed in the air (fixed) -i dont know how to get textures on the basket (worked around) -basket doesnt move if a vehicle crashed into it (fixed) -crew view position is not where its supposed to be -sling loading behaves odd -light sources don't relly emit light to the environment Basically I want the basket to be a Boat which can't be driven because it has no motor. This is the current config of the basket class cfgPatches { class Rescue_Basket { units[] = {"Rescue_Basket"}; weapons[] = {}; requiredVersion = 0.1 requiredAddons[] = {}; }; class Life_Raft_8 { units[] = {"Life_Raft_8"}; weapons[] = {}; requiredVersion = 0.1 requiredAddons[] = {}; }; }; class CfgVehicles { class Boat_F; class Rescue_Basket : Boat_F { side = 1; scope = 2; faction = "Coast Guard"; model = "\Coast-Guard-Objects\Basket.p3d"; slingLoadCargoMemoryPoints[] = {"SlingLoadCargo1","SlingLoadCargo2","SlingLoadCargo3","SlingLoadCargo4"}; displayName = "Rettungskorb"; }; class Life_Raft_8 : Boat_F { side = 1; scope = 2; faction = "Coast Guard"; model = "\Coast-Guard-Objects\LifeRaft8.p3d"; slingLoadCargoMemoryPoints[] = {"SlingLoadCargo1","SlingLoadCargo2","SlingLoadCargo3","SlingLoadCargo4"}; displayName = "Rettungsinsel (8 Personen)"; }; };
  4. Hello, I have been trying to mod a drone from the contact campaign to have a extra weapon added to it. This was easy enough and is working well. I have got it to the point where the PKP will also dissapear when the drone is put into transport mode and reappear when placed down. The problem i am facing is that i cannot get the cosmetic PKP ontop to follow the gun barrel of the Contact drone correctly. Please see the vid below for the issue. Basically it does not seem to be referencing correctly to the barrel of the gun. I am not entirely sure where to go from this point to fix the issue. The main code for the weapon attachment is being executed as a sqf: Wep1 setDamage 1; Wep1 attachTo [Drone1,[0,0.05,0.05],"arm3"]; while {true} do { _dir = (drone1 weaponDirection currentWeapon drone1); Wep1 setVectorDirAndUp [[(_dir select 0)+0.7,(_dir select 1) +0.7,(_dir select 2) + 1],[1,-0.002,0]]; sleep 0.01; _countAlive = {alive _x} count (crew drone1); if (_countAlive==0) then { Wep1 hideObject true; } else { Wep1 hideObject false; } }; The drone is executing this code to change the weapon it is using (Variable name = Drone1): this removeWeapon "DeminingDisruptor_01_F"; this removeWeapon "Laserdesignator_mounted"; this addWeapon "CUP_Vhmg_PKT_veh"; this addMagazine "cup_100Rnd_TE1_Green_Tracer_762x54_PKT_M"; this addMagazine "cup_100Rnd_TE1_Green_Tracer_762x54_PKT_M"; this addMagazine "cup_100Rnd_TE1_Green_Tracer_762x54_PKT_M"; this addMagazine "cup_100Rnd_TE1_Green_Tracer_762x54_PKT_M"; this addMagazine "cup_100Rnd_TE1_Green_Tracer_762x54_PKT_M"; this addWeapon "Laserdesignator_mounted"; this addMagazine "Laserbatteries"; The weapon (PKM) is executing (Variable Name = Wep1): execVM "Weapon1.sqf"; Part of the issue is that the weapon its self spawns sideways so it requires corrections to be added to the weapon to keep it facing the correct direction. For setVector direct and up these were [[-0,0.002,1],[1,-0.002,0]] originally before the values that you saw in the code above were found through trial and error. It is also attached to the arm 3 of the drone as i cannot find the refrence for the gun its self. Top red triangle. The weapon its self is just executing the .SQF and the drone only has the scripting for changing the weapons and ammo in it. PKP is from CUP along with scripted weapon being used for the drone. Will have same issues with vanallia assets though. However it will work with any weapon prop as they all spawn in sideways. If anyone has any ideas on how to correct this it would be appreciated. I can also send over the mission file is needed. Thanks in advance.
  5. 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
  6. While I am no beginner at programming in general, I am relatively new to SQF scripting for Arma 3. After 1000 hours I decided to finally toy around with the scripting side of things and I've already completely broken my first script. I apologize for any mistakes I may have made in advance, I am really new to this and I need some help solving this problem. At the moment the script is executing, however, it is not displaying the kills in the chat as it should be. I am realizing more and more that the YouTube video I learned this from is very inaccurate and riddled with errors. ----------initClient.sqf---------- // Executes all client scripts remotely and globally (with restrictions to client only if set in the script itself). [] remoteExec ["killFeedClient", 0]; ----------initServer.sqf---------- // Executes all client scripts remotely and server-sided. [] remoteExec ["killFeedServer", 2]; ----------killFeedClient.sqf---------- // Creates "killFeedClient" function to be executed in "initClient.sqf." killFeedClient = { { // Adding an event handler for the "Killed" action to every unit. _x addEventHandler ["Killed", { // Initializes all of the variables used in the formatting of the kill-feed statement. _unit = (_this select 0); _killedBy = (_this select 1); // Organizing and grouping all of the variables into a single array. deathInfo = [_unitName, _killedBy]; // Creating the "killFeedUpdate" public variable event handler. publicVariableServer "killFeedUpdate"; }]; } forEach allUnits; }; ----------killFeedServer.sqf---------- // Creates "killFeedServer" function to be executed in "initServer.sqf." killFeedServer = { // Only runs this script if the machine executing it is the server. if (isServer) then { // Listens for updates from the "killFeedUpdate" public variable event handler. "killFeedUpdate" addPublicVariableEventHandler { // Initalizes "_deathInfo" private array and sets it's value from the previously mentioned event handler. private "_deathInfo"; _deathInfo = (_this select 1); // If you are confused by why we used 1 and not 0 refer to "addPublicVariableEventHandler" documentation on the wiki. // Extracts each variable from the "_deathInfo" private array. _unit = (_deathInfo select 0); _killedBy = (_deathInfo select 1); // Grabs some more data by passing the previously mentioned variables through a variety of functions. _unitName = name _unit; _killedByName = name _killedBy; _distance = _unit distance _killedBy; // Formats the kill-feed statement to be displayed in the game chat. _killFeedStatement = format ["%1 was killed by %2. (%3m)", _unitName, _killedByName, _distance]; // Displays the kill-feed statement in the game chat as if it were being called in by the killer. _killedBy globalChat _killFeedStatement; }; }; };
  7. Now before anyone says it, I realize that this forum is dedicated to Arma 3 and usually does not support any 3rd party addons, mods, plugins, etc., however, I believe that as CBA is such a big part of SQF scripting that I feel as if I need to learn to use it. I have tried to use the official CBA documentation on their GitHub, but if I am being completely honest, it is genuinely quite confusing and difficult for me to wrap my head around. I have some prior programming and scripting experience in languages such as C++, Javascript, Python, and a few others, yet this seems more complicated than anything I'm used to. I guess I should get to the point and ask my question. Is there any YouTube videos or written guides that can explain these CBA features to a beginner in both SQF and CBA? Any and all responses are greatly appreciated, as always! 😊
  8. Why does this spawn under water? (map: malden 2035) veh = "FIR_F16D" createVehicle ([8800,10200,300]); grp = createVehicleCrew veh; unit = grp createUnit [typeOf driver veh, grp, [], 0, "CARGO"]; bomber = grp addWaypoint [getPos spawny2, 0,0,"Bomb"]; veh setVelocity [(sin 270 * 200), (cos 270 * 200), 0];
  9. Alright, I'm going to preface this with I have barely any idea of what I'm doing. My coding experience is that I know enough to stumble around and copy and paste things to make them work, but not enough to write anything from scratch. My current project is telling an AI grenadier, to fire a smoke shell from his underbarrel grenade launcher, at the target he has been assigned by the group leader. Ideally I'd like this to be modular, so I can just shove it into the init of any grenadier I want to do that with. Bonus points if it's possible to have the AI only fire the smoke shells within a certain range. I've done digging for the past two days and came up with this. At first I had it in it's own .sqf file, but the game kept throwing errors so I did away with that and went straight for the Grenadier's Init. This code doesn't work at all. Currently it spams the console with "Suspending not allowed in this context". Which would be related to the sleep command. When I had it in it's own SQF it threw errors like "Error assignedtarget: Type Array, expected Object" or "Error Undefined variable in expression: this". I'm completely lost so any help would be appreciated.
  10. Does anyone have any idea how to use the function "BIS_fnc_isCuratorEditable" to kill curator editable units when they enter a trigger. I am trying to create a restriction zone around my map which kills the player and curator units when they enter the zone but will allow none curator units to pass through (so I can simulate reinforcements entering the region after a certain amount of time). I have been running some tests to get an idea on how the "BIS_fnc_isCuratorEditable" function works. I currently have four triggers around the map which tell me through a hint whether a unit is curator editable or not. I am now trying to work out how to change it from giving me a hint which is either true or false, to killing the unit if true or allow the unit through if false. Something along the lines of... Just can not seem to work it out. Also tried this to no avail...
  11. Hello so im creating a mission with a song that triggers when I start the mission. So in my description.ext file i've got this class CfgMusic { tracks[] = {}; class MyIntro { // display name name = "intro"; // filename, volume, pitch sound[] = { "\music\sound1.ogg", db + 0, 1.0 }; }; class MyOutro { name = "outro"; sound[] = { "\music\sound2.ogg", db + 10, 1.0 }; }; }; Copy and pasted from Bohemia's website on how to import the music/make it play and in my init.sqf file i've got the following execVM "description.ext"; playMusic "MyIntro"; vehicle player switchCamera "EXTERNAL"; Now everything works, the mission loads up, it forces you to 3rd person and even starts playing the music however no matter who's code I use I always am getting presented with this error '...s\Sniper.Stratis\description.ext" class |#|CfgMusic {tracks[] = {}; class MyIntro ...' File C:\Users\Brandon\Documents\Arma 3\mpmissions\Sniper.Stratis\desc..., line 1 Error Missing ; This above error pops up in black box on the screen the moment the mission loads. It's missing a semi colon but I have no idea where and i keep adding one and nothing, works. Any Ideas?
  12. ▶ What do you do on Vigor? I'm a Jr. Scripter working on creating / prototyping game mechanics and player interfaces. ▶ What is your contribution to the Vigor Team? I do my best to always be learning something new, both at work and in my personal life.. Whether it be the Czech language or an aspect of the Unreal Editor. For me, a day’s success is measured in the lessons learned. And from a technical perspective, my contributions are probably most visible in the Reward & Crate screens displaying cloud data to the player. ▶ What do you like about Vigor? I like the mentality of high risk, the high reward associated with the airdrop. I personally enjoy games that create this feeling of hypersensitivity and suspense that emotionally capture the player in a way that's unique or commonly connected with games like F.E.A.R. ▶ What do you want to see in Vigor? I hope to see more easter eggs. While there's already quite a few, I still feel there's room for more. It would be nice to hide some cleverly scripted actor within a level just to see how long it takes for the community to notice. 🙂 ▶ What do you do when you are not making Vigor? When I'm not working I do my best to stay creative and busy; that being said I try and balance my time among friends, goals & personal projects. ▶ Did game dev change your view on games and how? I think whenever your passion becomes your career, your mentality changes a bit. I thoroughly enjoy game-dev, but it certainly changes the way you experience games. I find myself far more analytical and taking longer to progress through the game as I’ve become overly detail-oriented. ▶ Your favorite games and why? I feel compelled to mention the Arma franchise, as I owe my career and love for game-dev to it. But growing up my favorite games were Banjo And Kazooie, Delta Force Black Hawk Down, and Stronghold Crusader. Unfortunately after joining Bohemia, I find myself playing games less in my free time. Hopefully, in the near future, I’ll be able to catch up on some of the recent releases. ▶ What's your favorite music, movie, show, book and why? This question has no short answer for me. But I love media that leaves the audience thinking. For example shows like Black Mirror, Maniac, or books like To Kill A Mockingbird. In regards to music, I was raised a metalhead, and spend a lot of time listening to thrash bands such as Kreator, Municipal Waste, DRI, & Testament. ▶ Is there something that you want to say to our community? Just that it's amazing to create content and receive feedback, so join the community discord and forum. ▶ You are an Outlander; humanity has fallen. What would you do? In reality, I think I’d find a nice shelter and only queue for encounters when I need essential resources. 🙂 Bonus Question (From Martin ) ▶ How do you enjoy living in Europe? What is the biggest difference for you? I absolutely love living in Europe. It seems every major European city is perfect for getting lost in for a weekend or so. Here in the Czech Republic, there are almost monthly festivities to keep yourself busy. It's a great place to live, I certainly recommend it to all my friends in the states considering careers abroad. After being here for a year it's rather hard to remember what the biggest difference was? The one that's reoccurring, and most frustrating in the summer, is that there is no ‘free’ water in Czech restaurants. You explicitly have to order it, in the states it's just always there. It's a terribly small thing but seems to be a reoccurring nuisance. Other then the one “pet peeve” I can't think of anything terribly different. Im sure theres a lot that I'm overlooking, but after a while, the Czech / European lifestyle just seems normal. 🙂
  13. Hey! How's it going. I wanted to see if anyone also is having troubles or have resolved a form to get backpacks rotated in Eden editor to stay as they are when the game launches? For example, I wanted to hang a backpack off a railing, the backpack once the game launches, drops to the floor as if it were dropped by a player. I've attempted to remove it's simulation, dynamic simulation, damage, showing it's model, and different combinations of each in an attempt to solve this. By any chance does someone have a fix to this or a script that can be used to paste into the init for the bag to keep it where it's at? Example photos at the Imgur link below. https://imgur.com/a/DJbB2r8 Thank you for your time! 😁
  14. Hi all, I am currently making a map which requires a Curator Editing Area to follow the player around the map. I would like it so that if an enemy of the player enters the Curator Editing Area, the Curator Editing Area is disabled (to stop him spawning stuff on top of the enemy). I have managed to write a script which has the Curator Editing Area follow the player... //init.sqf [] spawn { while { alive t1 } do { myCurator addCuratorEditingArea [ 0, position t1, 50 ]; sleep 0.05; }; }; How this works is by creating a Curator Editing Area at the position of the player every 0.05 seconds. The interesting part is that you keep the ID of the Curator Editing Area, this means that it deletes the old Curator Editing Area when the new one is created. (Curator Editing Area ID being 0 in this case). The problem I have is temporarily disabling the creation of "new" Curator Editing Area 's while an enemy is within range. So I need to be able to temporarily disable the script (which I do not know how to do).
  15. FuRixX Lamborghini

    Code question

    Any one can help my with this code that is a name filtering. script example: _letrasFuRixX = ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","ñ","o","p","q","r","s","t","u","v","w","x","y","z","A","B","C","D","E","F","G","H","I","J","K","L","M","N","Ñ","O","P","Q","R","S","T","U","V","W","X","Y","Z"]; jugadorFu = name player; { checkeoFuRixX = [_x, jugadorFu, false] call BIS_fnc_inString; if (!checkeoFuRixX) exitWith { sleep 2; hint "You name is not valid in this server"; endMission "END1"; }; } count _letrasFuRixX; The problem is that I need to sparete the name player letter to letter like a string or anything: ["P","e","t","e","r"];
  16. Hello, I am trying to use the "Key Frame Animation" to make a little cinematic but I have a doubt that I have not found anywhere. Context: I already have all the modules of the "Key Frame Animation" ready and the camera moves well with the modes: Animation, Move, Nothing. Question: How should the objective to look at be introduced? I understand that it goes in the Rich Curve module, Look input. But I just didn't understand its syntax. The description says: <EdenId, TargetObject> As default: [-1, <NULL-object>] If I have an object called Target_0 which is what I want to look with the camera, what should I do? Thanks in advance. Spyke
  17. Hi everyone, I'm trying to make a script that allows you to cancel a mission by clicking on a text that says CANCEL in the description of the task. Script: _descript1 = "<execute expression=' [1] call compilefinal preprocessFileLineNumbers'DMG\functions\fn_CancelM.sqf' '>CANCEL</execute>"; And then in the task: [blufor, ["Tarea_"+_IDTarea], [_descript1,_titulo,_marker], _posicion, true, 1, true] call BIS_fnc_taskCreate; If I put it in this way the result is that nothing comes out. Thanks for your help Spyke is my first post in this forum, if I do not have to say it here please tell me. I found it here:
  18. How does one use the MissionEventHandler "BuildingChanged"? I'm currently trying to make it so that when a building is damaged (and changes into its partly damaged form) a trigger is activated and props inside the building are deleted. Unfortunately, I'm having real trouble getting the script to work. Please help!
  19. Hey guys and gals, I'm trying to create a task where the player has to take an object on the ground (no matter which one, currently trying with a first aid kit). I don't know why I absolutely can't make it right. I create and configure the task, the task state and the trigger as always, and in the trigger I write "Item_FirstAidKit" in items player" And it won't work at all. Can you guys send help? I'm really stuck on this basic thing and I'm pretty frustrated about it, no matter what I do I can't make it work (Also asked on the steam forums)
  20. Hiho and welcome to Vandeanson's Lazy Gear Categorizer, a first demo of my Arma 3 scripter and mission maker tool. VLGC should help you to put together equipment array categories for your mods and missions but will allow you to avoid an annoying back and forward copy paste nightmare between the Editor and Notepad. Just chill out in VR and categorize in game. Simply load your equipment mods (if you want to), start the demo mission, and use the addActions to select what type of gear (Uniforms, weapons,...) you want to assign to the category types 1 - 6. You can choose for yourself what these types stand for, so the mod/script can be used for multiple projects. Just restart the mission once one project is done to start with categorizing the next equipment typw. In this video example, I use VLGC to categorize gear into groups of (e.g. Uniforms) that have different warmth values from warm winter gear to light summer gear. This i want to use for a survival and temperature system, so different type of uniforms will increase the players body temperature and may protect against the cold, or cause the player to overheat, and a lot of other simulations. In the video you see how I placed reference units and trigger hintd next to the mannequin spawn area to visually remind me what gear should go where. Then I select the equipment type (in this case Uniforms) that I want to categorize. Now the unit on the box gets the Uniform I need to decide about equipped, I can inspect it and decide if it should be "winter","summer","autumn" or "spring" equipment. The classname of the Uniform is then added to a respective new category/array (one of the 6) that can be copied later on, once all Uniforms from the Uniform pool are categorized. Also, a new unit with the just categorized gear spawns in the equipment types (1-6) area, so I can easily see what gear went to what category already. I will add an option to change categorized gear again, if you miss clicked or changed your mind. In the end, when the available Uniform pool is empty, I get to copy each type array to the clipboard and into my notepad/atom. Here I can give the new array a final name for later use. In case I mess something up, I also get an option to go back and copy each array again. Now I can restart the mission and select another equipment piece or I add another mod and make a e.g. CUP version of the Uniform arrays. All active mods are recognized and the following slots can be categorized: Uniform Backpack Headgear Glasses/facewear Vests Backpacks Pistols Rifles Launchers The demo mission from the video can be found on STEAM. Cheers VD
  21. So I'm currently making a vanilla (except for 3den enhanced on my end) singleplayer campaign. I finished Feuerex's tutorial on the subject but I still have some questions. 1. How can I hide missions that the player hasn't gotten to yet in the campaign menu? 2. How do I transfer the player's inventory between missions? And then I have some questions relating to my campaign in general. 1. How do I move the mission between scenario phases? (referring to these https://community.bistudio.com/wiki/Eden_Editor:_Scenario_Phases) 2. How should I go about making a hub level? like camp maxwell in survive. 3. How do I make required gear for missions while in the hub level? Again using survive as an example.
  22. I am currently trying to make it so that when a hold action is preformed on a crate, it will put the crate in the back of a non specific Zamak Truck. Currently, it will put the crate in the nearest Zamak Truck (destroyed or alive). I need it to only pick the closest alive Zamak Truck. I've tried loads of different methods, but I'm now quite stuck. Please help! This is my script so far, all working fine. [ this, "Load.", "\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_loaddevice_ca.paa", "\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_loaddevice_ca.paa", "_this distance _target < 3", "_caller distance _target < 3", {}, {}, { _this call { _ZamakTrans = nearestObjects [ _this select 0, [ "Truck_02_transport_base_F" ], 25 ]; if ( count _ZamakTrans > 0 ) then { target = ( _ZamakTrans select 0 ); _lockIndexes = [ 2, 3, 4, 5, 6, 7 ]; { if ( ( _x select 2 ) in _lockIndexes ) then { moveOut ( _x select 0 ) }; } forEach fullCrew target; { target lockCargo [ _x, true ]; } forEach _lockIndexes; box attachTo [ target, [ 0, 0.25, -0.15 ] ]; box setVectorDirAndUp [ [ 1, 0, 0], [0, 0, 1 ] ]; }; } }, {}, [], 2, Nil, true, false ] remoteExec [ "BIS_fnc_holdActionAdd", 0, this ]; What I need is to pick the closest alive Zamak Truck, not just the closest one. (any advice/criticism on my script will be greatly appreciated.)
  23. Okay so I have broken a script while trying to change the mod dependencies because I opened it in in notepad and I did not unbinarize it first. The good thing is I made a backup of the file but the backup is a txt document. How do I fix this? I have downloaded arma tools and I have some of mikero's tools such as derap but I don't know what i'm doing from here. Any help would be greatly appreciated! When I try to load mission I am receiving a message that says mission.sqm, line 0: '.raP': " encountered instead of '='
  24. I am currently trying to make it so that when a hold action is preformed on a crate, it will put the crate in the back of a non specific Zamak Truck. This would mean that the seats in the back of the truck would have to be locked and anyone sitting in the truck must be ejected from those seats. This is my script so far, all working fine. [ this, "Load.", "\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_loaddevice_ca.paa", "\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_loaddevice_ca.paa", "_this distance _target < 3", "_caller distance _target < 3", {}, {}, { _this call { _ZamakTrans = nearestObjects [ _this select 0, [ "Truck_02_transport_base_F" ], 25 ]; if (count _ZamakTrans > 0) then { target = _ZamakTrans select 0; { target lockCargo [ _x,true ] } forEach [ 2, 3, 4, 5, 6, 7 ]; box attachTo [ target, [ 0, 0.25, -0.15 ] ]; box setVectorDirAndUp [ [ 1, 0, 0], [0, 0, 1 ] ]; }; } }, {}, [], 2, Nil, true, false ] remoteExec [ "BIS_fnc_holdActionAdd", 0, this ]; All I need at the moment is to be able to eject people from the seats 2, 3 4, 5, 6 and 7. (any advice/criticism on my script will be greatly appreciated.)
  25. I want to get into making SP Campaigns but I'm pretty incompetent when it comes to scripting. I'm looking for a project with people who are willing to teach me the basics so I can get some experience.
×