Search the Community
Showing results for tags 'groundweaponholder'.
Found 2 results
-
Action "DropWeapon" not working with AI now.
beno_83au posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
This used to work (last time I used it was a couple of months ago) but now it doesn't: _unit action [ "DropWeapon", ("GroundWeaponHolder" createVehicle (position _unit)), (primaryWeapon _unit) ]; _unit will perform the action/drop weapon anim, but the weapon remains in his hands. Obviously, I could just use removeWeapon, but this is more for the aesthetics of it as the player is likely to have eyes on _unit. Has this broken/changed or anything since Eden? edit: Scratch that, I must have changed some things that I forgot about. It used to be a handgun hat was dropped, not primary, so I'll probably just go back to that. But what would stop this working with primary weapons?- 10 replies
-
- action
- drop weapon
-
(and 2 more)
Tagged with:
-
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: