-
Content Count
6932 -
Joined
-
Last visited
-
Medals
-
Medals
-
Community Reputation
4441 ExcellentAbout pierremgi
-
Rank
Captain
Profile Information
-
Location
Tahiti
Recent Profile Visitors
-
pierremgi started following dotarget a gamelogic?, Help deleting object mid-mission, How to Add Land weapon to air vehicle arma3 and and 6 others
-
Help deleting object mid-mission
pierremgi replied to Mr.clean132's topic in ARMA 3 - MISSION EDITING & SCRIPTING
clearItemCargoGlobal _this; clearWeaponCargoGlobal _this; clearMagazineCargoGlobal _this; clearBackpackCargoGlobal _this; -
How to Add Land weapon to air vehicle arma3
pierremgi replied to ohgo0's topic in ARMA 3 - MISSION EDITING & SCRIPTING
The probable easiest way is to "hack" the projectile when created. In init field of the demining drone: this addEventHandler ["Fired", { params ["", "", "", "", "", "", "_projectile"]; createVehicle ["Bo_Mk82",getpos _projectile,[],0,"can_collide"]; deleteVehicle _projectile; }]; -
mgi scripts MAGAZINES REPACK
pierremgi replied to pierremgi's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Difficult to say. This script was update in an addon (MGI modules), and I'm focused on several asked improvements for the modules. If I'm right, the script is working in vanilla and you can so a simple test on it, SP then MP (that shouldn't change anything). Then, try your loadout, then your other mods (avoid double runs with my script + my module). I can't do that for you. -
Help with creating a script to lock doors
pierremgi replied to Kosiposha1551's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Perhaps someone playing this mod could help... -
Help with creating a script to lock doors
pierremgi replied to Kosiposha1551's topic in ARMA 3 - MISSION EDITING & SCRIPTING
OK. Are you making a scenario for single player? (multiplayer is more difficult). On which map? which mod(s)/DLC(s)? Doors are open by default, so how dod you make them (all?) closed? Do you want to close all doors of all buildings, first? Or do you want to close one specific house? Edited or native on map?... -
Help with creating a script to lock doors
pierremgi replied to Kosiposha1551's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hello @Kosiposha1551. Welcome on forum. Yes, there are some topics about that. If you didn't find what you want, you should precise what you want to do exactly. -
mgi scripts AI REVIVE HEAL SCRIPT SP/MP
pierremgi replied to pierremgi's topic in ARMA 3 - MISSION EDITING & SCRIPTING
It's intended in fact. Same in vanilla Arma if i'm right. Anyway, more realistic, if any realism here. And I prefer not adding extra code saving the behaviour of revived units. -
merge missions scripts
pierremgi replied to Barba-negra's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hello @game cardoso. Welcome on forum. First of all, you must read some basic rules about this forum: - Do not necro old posts; - Do not hack any topic for unrelated question; - Do not double post! - use English language only (deactivate auto-translation); - avoid copying / pasting codes for nuts. For your future searches, use key word's) in upper right search field (near notice bell). You have also useful links, usually pinned at the start of the pages and one I recommend is : Now, for your goal, I'm not sure what you need exactly, you have solutions like: - merging two scenarios (you created) in 3den by clicking on scenario menu (the first one) then merge. Mind for exact same mods and map. - you can create a campaign. See tutos like: https://www.youtube.com/watch?v=BIvLIg6gQB0 Have fun with Arma -
Run a script on behalf of a specific player (MP)
pierremgi replied to simicsko's topic in ARMA 3 - MISSION EDITING & SCRIPTING
crew Supply_Heli_1 + Supply_Heli_1 is a forbidden sum of an array + an object. Write crew supply_Heli_1 + [supply_Heli_1] instead. (just as side note) you can also simply: deleteVehicleCrew supply_Heli_1; deleteVehicle supply_Heli_1; since v2.06 -
Any way to filter small roads on Tanoa
pierremgi replied to nomisum's topic in ARMA 3 - MISSION EDITING & SCRIPTING
As rule of thumb, everything you can set at start (on each PC), without necessary sync, is far better for performance. Simple objects, hidden objects..., final textures... can be set locally (see 3den, you have this choice). On the other hand, when things must occur during game, you need, most od the time, to use a global command, so a sync (example: hide/unhide object alongside (a) player's progress). Avoid massive sync. -
Any way to filter small roads on Tanoa
pierremgi replied to nomisum's topic in ARMA 3 - MISSION EDITING & SCRIPTING
yep! As @avibird 1 said, you can select the road segments you want to clear. See this post. getRoadInfo is fine for that. You don't need to hideObjectGlobal. Run the code locally everywhere (at start on each PC). This will stay local, with no global command leading to desync, and no matter because every PC will have the same permanent result. Use hideObject as I showed. -
TFAR Radio Jamming Script not working correctly.
pierremgi replied to Gacku's topic in ARMA 3 - MISSION EDITING & SCRIPTING
"_gain" here is declared as local variable, not a parameter. That's what a learned from BIKI and forum, a long time ago. You can add extra local variables in params AFTER all passed params if I'm right. Extract: "It is a good practice to make your local variables private (through private or params) in order to avoid overwriting a local variable of the same name" Why I coded like that? because, if I'm right: params ["_jammer","_gain"]; , when the only passed parameter is _jammer, is same as : params ["_jammer"]; private "_gain"; Now, til further advice, it's (probably?) better to declare a local variable (_gain here) outside of the while do loop , (in same scope, for sure). I mean, I always thought it's not a good idea declaring local variables again and again in loops. Perhaps I'm wrong. -
setVariable and vanilla buildings
pierremgi replied to xjoker_'s topic in ARMA 3 - MISSION EDITING & SCRIPTING
Did you set your variable as public ( building setVariable ["aVariable",someData,TRUE] )? Have you the same version of the map? -
TFAR Radio Jamming Script not working correctly.
pierremgi replied to Gacku's topic in ARMA 3 - MISSION EDITING & SCRIPTING
YourFunctionName = { params ["_jammer","_gain"]; _jammerArea = [getpos _jammer,200,200,0,false,200]; while {alive _jammer} do { { _gain = if (_x inArea _jammerArea) then [{0},{1}]; _x setVariable ["tf_receivingDistanceMultiplicator", _gain]; _x setVariable ["tf_sendingDistanceMultiplicator", _gain]; } foreach allPlayers; sleep 5; }; { _x setVariable ["tf_receivingDistanceMultiplicator", 1]; _x setVariable ["tf_sendingDistanceMultiplicator", 1]; } foreach allPlayers; }; Not tested -
Thank you for your share.