OFPEC Forum
Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting General => Topic started by: bardosy on 12 Sep 2010, 10:44:38
-
Is it possible to add backpacks to weapon selection (description.ext)?
I can add backpack to a man in init.sqs, but I want to leave the choice to player, so I want add backpacks to weap selection. If it's possible, what is the keyword in the class? I guess it's not weapon nor magazine...
-
should be not possible as backpacks are cfgVehicles type
-
But how are backpacks added then to soldiers? There's a config entry for whether or not they can carry a backpack, but I'm unsure about where it says what kind if any of backpack they'll be carrying. If they are added with e.g. addweapon, then they're weapons, no? If they're added with their own command, then I'm not so sure about the description.ext.
Since you're a campaign scripter, have you tried manually adding backpacks (i.e. as the player go and drop a backpack or two into a crate) to an ammocrate, then saving the ammocrate to the campaign weapon/magazine pool, and then see if they show up in future missions? If they do, then there just HAS to be some way to add them to the pool, I'd say...
Wolfrug out.
-
class CZ_Soldier_SL_DES_EP1: CZ_Soldier_base_EP1
{
..
backpack = "CZ_VestPouch_Sa58_EP1";
Rucks are no weapons, no.
-
I added backpack as a weapon and don't work. :(
But wolfrug has a good idea! I'll try it.
If it's not working, I'll leave it alone... I think, BIS solve this backpack very badly. :no:
-
[73297] New: addBackpackCargo script function
So now the campaign savegame approach may work. :)
-
Is it possible to add backpacks to weapon selection (description.ext)?
I can add backpack to a man in init.sqs, but I want to leave the choice to player, so I want add backpacks to weap selection. If it's possible, what is the keyword in the class? I guess it's not weapon nor magazine...
You can just add them like weapons and magazines by putting this into your description.ext:
class Backpacks
{
class US_Patrol_Pack_EP1 {count = 4; };
class US_Assault_Pack_EP1 {count = 4; };
};
Hope this is what you are looking for.
-
YES! :clap: :good:
Thank you!
-
You're welcome :)
-
Good job mate :good:
Added info to the BIKI:
http://community.bistudio.com/wiki?title=Description.ext&curid=1860&diff=58207&oldid=58189