Worldeater
Member-
Content Count
96 -
Joined
-
Last visited
-
Medals
Everything posted by Worldeater
-
Hi, this is a colorful Hummingbird texture I want to share with you. It might look familiar... :) About: This is just a texture for the Hummingbird. This is not an addon. It's based on BI's textures. In order to use it you either have to rely on setObjectTexture (see below) or create your own addon. Feel free to mirror it (unless BI objects). Example Usage: Open the mission editor, place a Hummingbird on the map and save the mission. Copy the texture to the mission folder. Put the following code in the Initialization field of the Hummingbird: this setObjectTexture [0, "heli_light_01_ext_magnum_co.paa"]; this animate ["addDoors",1]; this animate ["addBackseats",1]; this animate ["addTread",0]; this animate ["addBenches",0]; this animate ["addCivilian_hide",1]; { this lockCargo [_x, true] } forEach [2,3,4,5]; Download: http://cthulhu.dark.ro/arma/heli_light_01_ext_magnum_co.paa Changes: 2013-09-02: Minor improvements, e.g. colored the black "eyebrow" above the doors 2013-09-01: Added kylania's code to the instructions above
-
How to remove mod dependency from mission?
Worldeater replied to xendance's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Open the mission.sqm with a text editor. Check the addOns and addOnsAuto sections at the top. -
Genearte a list of configfile >> "CfgVehicles"
Worldeater replied to 1para{god-father}'s topic in ARMA 3 - MISSION EDITING & SCRIPTING
This script over at OFPEC should do the trick. -
Waypoints, I'm going crazy
Worldeater replied to Antorugby's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hmm, addVehicle to the rescue? This works for me: group dude addVehicle ride; dude assignAsDriver ride; units group dude orderGetIn true; -
Image to white board Why size
Worldeater replied to snniper's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Yes, it works fine. The problem is that only a part of the image is displayed. The trick is to find out which part this is. Hint: There's a template inside the structures_f.pbo (a3\structures_f\Civ\InfoBoards\Data\mapboard_default_co.paa)... :) -
UI variables disappearing?
Worldeater replied to zapat's topic in ARMA 3 - MISSION EDITING & SCRIPTING
This might be a race condition. If so, then simply waiting for the variable to exist should fix it: with uiNamespace do { waitUntil not isNil { PLGRMUI_menuDisplay }; (PLGRMUI_menuDisplay displayCtrl 1003) ctrlSetTooltip "blahblah"; //looots of similiar settings }; -
Arma 3 Photography - Pictures only NO comments! And List your Addons Used!
Worldeater replied to Placebo's topic in ARMA 3 - GENERAL
-
This dude stumbled upon another skeleton:
-
Is this number an error?
Worldeater replied to f2k sel's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
4.81904e-005 is a perfectly fine number. It's just written in scientific notation: The e-005 part means "take the decimal point and move it 5 positions to the left". If the number was positive (e.g. e005) you'd move it to the right instead. Hmm, but there are not digits on the left to... Don't worry, just use zeros. So, 4.81904e-005 == 0.0000481904 HTH -
How to Learn to Script
Worldeater replied to Aradmel's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
This post might be helpful. Patience, determination and a knack for logic are helpful. :) -
addAction simplified
Worldeater replied to mrcurry's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Great idea! The event handler way of doing things... :) @kylania: You should read Curry's post again. ;) -
what does if(true)exitWith{};
Worldeater replied to 1para{god-father}'s topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Please note that according to the BIKI the behaviour is undefined in this case. Also take a look at the source of this information. -
Pop Up targets Stay up?
Worldeater replied to spec_ops_sniper's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
yourpopuptarget animate ["terc", 0]; // up yourpopuptarget animate ["terc", 1]; // down HTH -
Pop Up targets Stay up?
Worldeater replied to spec_ops_sniper's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Every time you hit one of those red pop-up targets A2 tries to load the following file: <your_mission_folder>\ca\misc\scripts\PopUpTarget.sqf So if you create those folders and add an empty "PopUpTarget.sqf" the targets won't go down anymore. You could also use this file to count hits, etc. -
Activate on crash
Worldeater replied to MichaelCO's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Hmm, checking for an altitude of zero is probably a bit too close. You could make the condition a bit more fuzzy: check if the helicopter dropped below a certain altitude. (getPosATL chopper) select 2 < 10 Also make sure you've named your chopper "chopper"... ;) -
"%20" is being added into my file/mission names
Worldeater replied to Otterbear's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
The "%20" thing is not uncommon. As you have already noticed it's a replacement for the space character (the ASCII code for space is 32, that's 20 in hexadecimal). Space characters in filenames cause problems with some software and this is just a workaround to avoid them. -
Activate on crash
Worldeater replied to MichaelCO's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Yes. Set the trigger activation to "None", put the code that places the marker in the activation field and use this as condition: (getPosATL chopper) select 2 == 0 Don't forget to make the trigger area big enough to cover all possible crash sites. -
No. If so you'd also need a semicolon after true. The semicolon can be omitted for the last statement of a block (a block is anything enclosed in curly braces).
-
How to disable Chat (Typing)
Worldeater replied to Cain_'s topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Right. I should also mention that this code probably won't do anything on a dedicated server. It's meant to be run on the clients. What it does is: it searches for the main display and attaches an event handler for key presses. Then every time someone hits a key the handler (that's the "if..." part) checks if it was the "chat" key. If so it simply does nothing and tells the engine to not investigate the event any further. -
How to disable Chat (Typing)
Worldeater replied to Cain_'s topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Quick, dirty and untested... but might work: (findDisplay 46) displayAddEventHandler ["KeyDown", "if (_this select 1 in actionKeys 'Chat') then { true } else { false };"] -
Script not running (loadout script)
Worldeater replied to mia389's topic in ARMA 2 & OA : MISSIONS - Editing & Scripting
Except when count is preceded by a code block. This optional code block is run for every element. That's why it works in the OP's example. Note that the array elements itself are meaningless here. It's their amount that counts (literally). He could also have used ["Frog", nil] instead of [1, 2]. -
Does anyone know a trick to get rid of gaps in (theoretically) adjacent controls? These gaps show up with certain settings of "Interface size" and "Interface resolution". The problem is probably caused by using floats for positioning. Having an additional scale factor applied (the last number returned by getResolution) makes things even worse (more rounding errors). The "window" above looks fine with a resolution of 1440x900 pixels with a scale factor of 0.7 ("Small") but literally falls apart with a scale factor of 0.85 ("Normal"). Overlapping the controls is not an option here (the border elements are buttons and overlapping them would result in "z-fighting": the active one would come to front hiding parts of the "window" or other border elements. Can anybody think of a solution for this?
-
Affecting AI weapon selection?!?
Worldeater replied to madrussian's topic in ARMA 2 & OA : ADDONS - Configs & Scripting
According to this information it's usually the value of the ammo's cost property. -
How to change the RscHint?
Worldeater replied to snkman's topic in ARMA 2 & OA : ADDONS - Configs & Scripting
While browsing the config I noticed that RscHint is part of RscInGameUI. Am I right that simply creating a new class RscHint won't work and that you have to provide a patched RscInGameUI instead? -
Should be easy, not working: createUnit
Worldeater replied to davewave's topic in ARMA 2 & OA : ADDONS - Configs & Scripting
We all know how annoying it can be when stuff does not work the way we expect it to work. Keep cool. 1. The snippet with the "SoldierWB" was probably for A1. From what I saw it was possible to create them in A1. This is not possible in A2 anymore. 2. Just a guess: If you don't have any other WEST units in your mission, you have to create a so called "Center" first. Every side (west, east, civilian, etc.) requires such a center before any units can be created. Without a center creating groups or units for that side will simply fail without any error message (I think we've all been bitten by that). You can create a center with the createCenter command. The following works for me: createCenter west; wgroup1 = createGroup west; dude = "US_Soldier_EP1" createUnit [getMarkerPos "base", wgroup1];