Swick

A3XAI Inventory for Roaming Vics?

10 posts in this topic

Im using Kuplions version of the A3XAI script. Is there a way to add inventory to the roaming AI vics that I am overlooking? Also if this is possible, is there maybe a way to add specific inventory loadouts to specific roaming vics? 

Thanks

Share this post


Link to post
Share on other sites

Hello @Swick,

That is a question best directed at @kuplion as it is HIS script...  ;)

BUT, and I do not know this script, EVERY vehicle spawned in ARMA has a NAME.  All you have to do is find where this 'name' is, then use commands to 'load it up'.

It is quite simple.  I have a 'Player Help Mod' in which one option is to spawn a vehicle and 'load it up' with gear automatically.

 

Here is PART of my code:

_vehicle = createVehicle [_spawnme, [_y5, _x5, _z1], [], 0, "CAN_COLLIDE"];
_vehicle setdir _heading;


clearMagazineCargoGlobal _vehicle;
clearWeaponCargoGlobal _vehicle;
clearItemCargoGlobal _vehicle;

_vehicle addItemCargoGlobal ["11Rnd_45ACP_Mag",100];
_vehicle addItemCargoGlobal ["10Rnd_93x64_DMR_05_Mag",100];
_vehicle addItemCargoGlobal ["150Rnd_93x64_Mag",100];
_vehicle addItemCargoGlobal ["HandGrenade",100];
_vehicle addItemCargoGlobal ["Titan_AT",100];
_vehicle addItemCargoGlobal ["Titan_AA",100];
_vehicle addItemCargoGlobal ["FirstAidKit",50];

_vehicle addItemCargoGlobal ["NVGogglesB_grn_F",25];

 

You also can find more info at:  https://forums.bohemia.net/forums/topic/207677-adding-a-inventory-to-any-item/

And:  https://community.bistudio.com/wiki/addItem

Or: 

 

It REALLY is an easy task once you see how it is done!

 

:)

 

Share this post


Link to post
Share on other sites
Advertisement
14 minutes ago, NFGCaboose-1 said:

@Swick I have been using this version of A3XAI that has vehicles with loot in them https://github.com/SnarkIndustries/A3XAI-Final . Would love to use @kuplion version if he had vehicle inventory in his version.

I'll check out that version. The version I used was the last official release and didn't have loot so that may be a custom addition.

  • Like 1

Share this post


Link to post
Share on other sites
14 minutes ago, Swick said:

@kuplion Were you able to take a look at this yet to see if this was a possibility for your script, no rush though if you haven't. 

The two versions are widely widely different, so it's going to need quite a bit of work to merge the features unfortunately.

  • Sad 1

Share this post


Link to post
Share on other sites

I was trying to ask in discord but my comment keeps disappearing so i apologize if it is ending up somewhere. But @kuplion  ive been meaning to ask you concerning your A3XAI script i cant seem to get reinforcement choppers to spawn. I get 2 separate errors. the first is when the script is loading

12:08:52 "A3XAI Error: Could not dynamically generate A3XAI_uniformTypes2. Classnames from A3XAI_config.sqf used instead."
12:08:52 "A3XAI Error: Could not dynamically generate A3XAI_uniformTypes3. Classnames from A3XAI_config.sqf used instead."
12:08:52 BEServer: registering a new player #446412823
12:08:53 "A3XAI Error: Could not dynamically generate A3XAI_backpackTypes2. Classnames from A3XAI_config.sqf used instead."
12:08:53 "A3XAI Error: Could not dynamically generate A3XAI_backpackTypes3. Classnames from A3XAI_config.sqf used instead."
12:08:53 "A3XAI Error: Could not dynamically generate A3XAI_vestTypes2. Classnames from A3XAI_config.sqf used instead."
12:08:53 "A3XAI Error: Could not dynamically generate A3XAI_vestTypes3. Classnames from A3XAI_config.sqf used instead."
12:08:54 Strange convex component52 in a3\static_f_sams\sam_system_03\sam_system_03_f.p3d:geometryFire
12:08:54 Strange convex component62 in a3\static_f_sams\sam_system_03\sam_system_03_f.p3d:geometryFire
12:08:54 Duplicate HitPoint name 'HitGun' in 'B_SAM_System_03_F'
12:08:54 Duplicate HitPoint name 'HitTurret' in 'B_SAM_System_03_F'
12:08:54 Dimensions in class B_SAM_System_03_F should be an array of size 2.
12:08:54 "A3XAI Error: Could not dynamically generate A3XAI_headgearTypes2. Classnames from A3XAI_config.sqf used instead."
12:08:54 "A3XAI Error: Could not dynamically generate A3XAI_headgearTypes3. Classnames from A3XAI_config.sqf used instead."
12:08:54 Dimensions in class Land_Pod_Heli_Transport_04_medevac_F should be an array of size 2.
12:08:54 a3\data_f\proxies\flags\flag_auto.p3d: No geometry and no visual shape

 
12:08:54 Dimensions in class Land_Pod_Heli_Transport_04_covered_F should be an array of size 2.
12:08:56 "A3XAI] Removing non-string item [""CUP_B_MV22_USMC_RAMPGUN""] from classname table."
12:08:56 Error in expression <forcements > 0) then {
{
try {
if (!(_x isKindOf "Air")) then {
throw format ["[>
12:08:56   Error position: <isKindOf "Air")) then {
throw format ["[>
12:08:56   Error iskindof: Type Array, expected String,Object
12:08:56 File A3XAI\scripts\verifyClassnames.sqf, line 92

Then I get this error when the AI try to call for the reinforcement aircraft.      

                                           
 13:12:11 Error in expression <les call A3XAI_selectRandom;
_vehicle = createVehicle [_vehicleType, _vehiclePos>
13:12:11   Error position: <createVehicle [_vehicleType, _vehiclePos>
13:12:11   Error Type Array, expected String
13:12:11 File A3XAI\compile\A3XAI_unit_spawning\A3XAI_spawn_reinforcement.sqf, line 30

Lastly is there any trick to enable the AI radio chatter. I have changed the config line from 0 to 1 to enable it but i have not heard a single thing. 

 

Thanks for any assistance you may have regarding this.

Edited by Swick
tag didnt work

Share this post


Link to post
Share on other sites
On ‎1‎/‎31‎/‎2019 at 10:12 PM, Swick said:

I was trying to ask in discord but my comment keeps disappearing so i apologize if it is ending up somewhere. But @kuplion  ive been meaning to ask you concerning your A3XAI script i cant seem to get reinforcement choppers to spawn. I get 2 separate errors. the first is when the script is loading


12:08:52 "A3XAI Error: Could not dynamically generate A3XAI_uniformTypes2. Classnames from A3XAI_config.sqf used instead."

12:08:52 "A3XAI Error: Could not dynamically generate A3XAI_uniformTypes3. Classnames from A3XAI_config.sqf used instead."

12:08:52 BEServer: registering a new player #446412823

12:08:53 "A3XAI Error: Could not dynamically generate A3XAI_backpackTypes2. Classnames from A3XAI_config.sqf used instead."

12:08:53 "A3XAI Error: Could not dynamically generate A3XAI_backpackTypes3. Classnames from A3XAI_config.sqf used instead."

12:08:53 "A3XAI Error: Could not dynamically generate A3XAI_vestTypes2. Classnames from A3XAI_config.sqf used instead."

12:08:53 "A3XAI Error: Could not dynamically generate A3XAI_vestTypes3. Classnames from A3XAI_config.sqf used instead."

12:08:54 Strange convex component52 in a3\static_f_sams\sam_system_03\sam_system_03_f.p3d:geometryFire

12:08:54 Strange convex component62 in a3\static_f_sams\sam_system_03\sam_system_03_f.p3d:geometryFire

12:08:54 Duplicate HitPoint name 'HitGun' in 'B_SAM_System_03_F'

12:08:54 Duplicate HitPoint name 'HitTurret' in 'B_SAM_System_03_F'

12:08:54 Dimensions in class B_SAM_System_03_F should be an array of size 2.

12:08:54 "A3XAI Error: Could not dynamically generate A3XAI_headgearTypes2. Classnames from A3XAI_config.sqf used instead."

12:08:54 "A3XAI Error: Could not dynamically generate A3XAI_headgearTypes3. Classnames from A3XAI_config.sqf used instead."

12:08:54 Dimensions in class Land_Pod_Heli_Transport_04_medevac_F should be an array of size 2.

12:08:54 a3\data_f\proxies\flags\flag_auto.p3d: No geometry and no visual shape


 

12:08:54 Dimensions in class Land_Pod_Heli_Transport_04_covered_F should be an array of size 2.

12:08:56 "A3XAI] Removing non-string item [""CUP_B_MV22_USMC_RAMPGUN""] from classname table."

12:08:56 Error in expression <forcements > 0) then {

{

try {

if (!(_x isKindOf "Air")) then {

throw format ["[>

12:08:56   Error position: <isKindOf "Air")) then {

throw format ["[>

12:08:56   Error iskindof: Type Array, expected String,Object

12:08:56 File A3XAI\scripts\verifyClassnames.sqf, line 92

Then I get this error when the AI try to call for the reinforcement aircraft.      

                                           
 13:12:11 Error in expression <les call A3XAI_selectRandom;
_vehicle = createVehicle [_vehicleType, _vehiclePos>
13:12:11   Error position: <createVehicle [_vehicleType, _vehiclePos>
13:12:11   Error Type Array, expected String
13:12:11 File A3XAI\compile\A3XAI_unit_spawning\A3XAI_spawn_reinforcement.sqf, line 30

Lastly is there any trick to enable the AI radio chatter. I have changed the config line from 0 to 1 to enable it but i have not heard a single thing. 

 

Thanks for any assistance you may have regarding this.

 

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.