Ray0210
Member-
Content Count
10 -
Joined
-
Last visited
-
Medals
Community Reputation
10 GoodAbout Ray0210
-
Rank
Private
core_pfieldgroups_3
-
Interests
weight lifting, games, movies
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
Ammo disappeared while playing created mission
Ray0210 replied to Ray0210's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Thank you very much for this explanation, it really makes a lot of sense. I think I understand how I might have to do this now. If I understand you correctly I put the following in the init.sqf for my 3 player mission, just to be sure I get it. if (isServer) then { removeWeaponGlobal; removeItemGlobal; removeUniformGlobal; removeVestGlobal; removeBackpackGlobal; player1 addHeadGearGlobal "H_Watchcap_blk"; player1 addUniformGlobal "U_I_G_Story_Protagonist_F"; player1 addGogglesGlobal "G_Bandanna_blk"; player1 addbackpackGlobal "B_Parachute"; player1 addvestGlobal "V_Chestrig_blk"; }; And so on for all 3 players I want a custom gear for? @rakowozz I also like the link you posted, I think I might try both just to see what happens ans what works best for me if both work. But thanks a lot for all of your help guys! -
Ammo disappeared while playing created mission
Ray0210 replied to Ray0210's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hi guys, thanks for the replies. I have some options to work with now. Altough I have an additional question about I set up my script. Could it be that the scripts did not work in multiplayer because I did not have waituntil {!isnull player}; _unit = _this select 0;" at the top of the script? I just immediately began with the removal of the default loadout and adding the custom loadout. But doesn't this very line mean the script will start working when a human player takes control of the unit or something? Like I mentioned earlier, I know nothing about scripting. So maybe someone knows a good link where I can learn some of these things. @ L3TUC3 I also don't really understand your post about locality, what does it do and how? BTW. The insertion in this particular is by parachute. So a VAS or ammobox on the ground basically ruins the mission start. -
Ammo disappeared while playing created mission
Ray0210 replied to Ray0210's topic in ARMA 3 - MISSION EDITING & SCRIPTING
So I tried the mission last night with a friend. And it's not working a 100%. It worked for my unit but not for the units my friend used. I created 3 seperate scripts for 3 units, the teamleader a marksman and a rifleman, and I put a code in the init line of these 3 units. So one that calls the scipt for the teamleader, one that calls the script for the marksman and one for the rifleman. So we started the mission with just the two of us, and he did not have the correct gear and I did. After that we tried it again but now with the 3rd unit as AI. The same thing happend but only the AI player also had my gear instead of the gear I put in the rifleman script. So I thought, maybe I need to incorporate all tree loadouts in one script. Is that maybe what I did wrong here? Ans if so, how do I do that? I will show how I did the script next. // LOADOUT - TEAM LEADER _unit = _this select 0; removeallweapons _unit; removeallassigneditems _unit; removeallcontainers _unit; //Gear _unit addHeadGear "H_Watchcap_blk"; _unit addUniform "U_I_G_Story_Protagonist_F"; _unit addGoggles "G_Bandanna_blk"; _unit addbackpack "B_Parachute"; _unit addweapon "Rangefinder"; _unit additem "ItemCompass"; _unit assignItem "ItemCompass"; _unit additem "ItemMap"; _unit assignItem "ItemMap"; _unit additem "ItemRadio"; _unit assignItem "ItemRadio"; _unit additem "ItemWatch"; _unit assignItem "ItemWatch"; _unit additem "NVGoggles_OPFOR"; _unit assignItem "NVGoggles_OPFOR"; //Ammo _unit addmagazines ["30Rnd_65x39_caseless_mag",6]; // Primary _unit addweapon "arifle_MX_Black_F"; _unit addPrimaryWeaponItem "muzzle_snds_H"; _unit addprimaryweaponitem "optic_tws"; _unit addprimaryweaponitem "acc_pointer_IR"; _unit addVest "V_Chestrig_blk"; _unit addmagazines ["DemoCharge_Remote_Mag",6]; _unit addmagazines ["16rnd_9x21_mag",3]; //Secondary _unit addweapon "hgun_P07_F"; _unit addHandgunItem "muzzle_snds_L"; And for calling the script I put: nul = [this] execVM "teamleader.sqf"; in the init line of the teamleader. And changed teamleader with marskman and rifleman for there scripts. -
Ammo disappeared while playing created mission
Ray0210 replied to Ray0210's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Ok so I got the scripts working. At least when trying the mission in SP it works. I'm going to try out this mission friday with a friend, let's hope it works!! Thanks alot so far! -
Ammo disappeared while playing created mission
Ray0210 replied to Ray0210's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Ok I can try that tomorrow. I think I need some time for this since i never made a script yet. Seems I am going to watch some tutorials again:p And I actually know only one way to host a mission. I go to multiplayer, hit "new" and change the name. The I change it to "internet", not lan. And since the end of gamespy we use hamachi. I hope this answers you question. -
Ammo disappeared while playing created mission
Ray0210 replied to Ray0210's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Thanks for your reply. And I just used the ingame editor, no scripts or anything special. I created a co-op mission for me and some friends. I now see why you think about any tools I might be using, i did not notice that at first. I put the following loadout in the units init line: removeallweapons this; removeallassigneditems this; removeuniform this; removevest this; removebackpack this; this adduniform "U_B_CombatUniform_mcam"; this addvest "V_TacVest_oli"; this addheadgear "H_HelmetSpecB"; this addmagazine "30Rnd_65x39_caseless_mag"; this addmagazine "30Rnd_65x39_caseless_mag"; this addmagazine "30Rnd_65x39_caseless_mag"; this addmagazine "30Rnd_65x39_caseless_mag"; this addmagazine "30Rnd_65x39_caseless_mag"; this addmagazine "30Rnd_65x39_caseless_mag"; this addmagazine "30Rnd_65x39_caseless_mag_Tracer"; this addmagazine "30Rnd_65x39_caseless_mag_Tracer"; this addweapon "arifle_MX_GL_F"; this addprimaryweaponitem "acc_pointer_IR"; this addprimaryweaponitem "muzzle_snds_H"; this addprimaryweaponitem "optic_Aco"; this addmagazine "16Rnd_9x21_Mag"; this addmagazine "16Rnd_9x21_Mag"; this addweapon "hgun_P07_snds_F"; this addmagazine "1Rnd_HE_Grenade_shell"; this addmagazine "1Rnd_HE_Grenade_shell"; this addmagazine "1Rnd_Smoke_Grenade_shell"; this addmagazine "1Rnd_Smoke_Grenade_shell"; this addmagazine "HandGrenade"; this addmagazine "HandGrenade"; this additem "ItemWatch"; this additem "ItemRadio"; this additem "NVGoggles"; this additem "Binocular"; this additem "ItemCompass"; this additem "ItemGPS"; this additem "ItemMap"; this assignitem "Binocular"; this assignitem "NVGoggles"; this assignitem "ItemCompass"; this assignitem "ItemGPS"; this assignitem "ItemMap"; this assignitem "ItemRadio"; this assignitem "ItemWatch"; And like I said it does work in the preview and also when I start up the mission by myself. We only lose our ammo when we start it up together, me, my friends as well as the AI in our group. -
Thanks alot, I found it. I put it in editing under troubleshooting.
-
Ammo disappeared while playing created mission
Ray0210 posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hey guys, I am very new to this forum or any forum, so let me know if I am at the right place and such. And also I am pretty new to editing in general, I just know the basics. I have been editing 4 Missions now and when I hit preview they work just how I want them to work. I exported them and started playing them with my friends. But about 30 seconds after the mission starts our custom loadouts just vanish, at least the ammo. The magazines and grenades. So after this problem I just put in ammo crates to resupply at the start of the mission. we played for a while and right after a savegame trigger it disappeared again. I must have done something wrong I guess but I have no clue what it is. Thanks in advance guys! -
Hey guys, I am really new to this forum thing so I dont really know where to begin. I have a editing question to what I cant find the answer to anywhere, so I wanted to make a new thread. But I can't find that option anywhere, where can I find it? Thanks in advance guys
-
Hey guys, I am really new to this forum thing so I dont really know where to begin. I have a editing question to what I cant find the answer to anywhere, so I wanted to make a new thread. But I can't find that option anywhere, where can I find it? Thanks in advance guys