Search the Community
Showing results for tags 'Backpack'.
Found 28 results
-
Changing gear script (multiplayer)
fernandolvferreira posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hello, I'm developing an airborne mission for my group, basically the guys (Two fire-team consisting of four members each, named A1, A2, A3, A4, B1, B2, B3, B4) spawn in an C-130 and parachute into the A.O. The problem is, I need them to have their backpacks when they land, so they have enough ammo and equipment to complete the mission, so I came up with this Idea, a trigger executing a script for each unit, the script will wait until they land and then add backpacks and equipment into it. The C-130 will enter the trigger area with the team onboard. These are the trigger's specs: ACTIVATION: BLUFOR ACTIVATION TYPE: PRESENT CONDITION: this && isServer ON ACT: para1 = [] execvm "scripts\backpack\A1.sqf"; para2 = [] execvm "scripts\backpack\A2.sqf"; para3 = [] execvm "scripts\backpack\A3.sqf"; para4 = [] execvm "scripts\backpack\A4.sqf"; para5 = [] execvm "scripts\backpack\B1.sqf"; para6 = [] execvm "scripts\backpack\B2.sqf"; para7 = [] execvm "scripts\backpack\B3.sqf"; para8 = [] execvm "scripts\backpack\B4.sqf"; Now this is the A1.sqf script: I tested it and it worked great, except when I tested it in a multiplayer server (I hosted it locally), I got in as unit A1. When I landed, the script worked and the parachute got replaced by the backpack and the defined contents, however it didn't work for the other player, their parachutes didn't get replaced by the intended backpacks, At first I thought I could've screwed the script for their units, so I restarted the mission and got in as another unit (A2), as some of you guys may imagine, I got my backpack just fine, but the other players didn't, not even the unit I just tested (A1). I tested all the other units and it worked great when I was playing as them, but no one else got their backpacks. As you guys probably know, I think I fucked up the locality of the script execution, not sure how, could any of you guys enlighten me as how to make this thing work? We usually use conventional hosting (through the game Multiplayer menu) and Dedicated hosting, so it would need to be something that works for both. Thanks in advance! -
Access backpack in groundWeaponHolder
beno_83au posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
I've spawned a backpack into a groundWeaponHolder and would like to be able to edit it's inventory but I haven't been able to figure this out yet. Either that, or after creating/editing a pack can I move it into the holder instead? I haven't been able to come up with anything that'll work, and I've been through a number of options. The unit starts in an aircraft and jumps out doing the whole "add a parachute, save the original backpack for later" thing. But, rather than just throw a pack straight onto the unit's back when they land I want to have them move to the pack and pick it up off the ground. This happens by attaching the above groundWeaponHolder onto the unit, then having it dangle below them prior to landing (anyone who's ever seen/done a combat equipment jump will know what I mean). The pack hits the ground, then the unit lands nearby and moves over to get their pack. I just can't manage to add/remove anything from the pack I create in the weapon holder, nor can I move a pack from a temporary unit into the weapon holder. The whole thing is still a WIP so it's a bit messy, but it's working mostly. Concerning the pack, to create it I'm currently using: _pack = backpack _unit; _packHolder = createVehicle ["groundWeaponHolder", [0,0,0], [], 0, "can_collide"]; _packHolder addBackpackCargoGlobal [_pack, 1]; I have been able to reference the pack using (for example) firstBackpack or everyBackpack but I can't get the result to mesh into something that I can use to edit the pack's inventory. Any advice?- 6 replies
-
- 1
-
- backpack
- groundweaponholder
-
(and 1 more)
Tagged with:
-
How to add items to a backpack that is not on a player
chondo999 posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
I am making a mission where the player starts riding an atv with his backpack and weapon on the back (not in the cargo) of the atv. I know how to do everything else. I just get stuck adding the ammo and other items into the backpack. Please, help.