Setting a unit without a primary weapon to Behavior "safe" causes unit to attempt to put rifle away, about 90% thru the put-away animation the unit begins to loop and stutter.
Description
Details
- Legacy ID
- 2581738671
- Severity
- Minor
- Resolution
- Open
- Reproducibility
- Always
- Category
- AI Issues
Create and save a new mission.
insert a player unit to observe.
Insert a bluefor unit that calls the following script from the mission folder;
// LOADOUT -rebelLeader01
_unit = _this select 0;
removeallweapons _unit;
removeallassigneditems _unit;
removeallcontainers _unit;
Gear
_unit addHeadGear "H_HelmetB_light";
_unit addUniform "U_B_CombatUniform_mcam_tshirt";
_unit addVest "V_Rangemaster_belt";
_unit addbackpack "B_AssaultPack_sgg";
_unit addweapon "Binocular";
_unit additem "ItemCompass";
_unit assignItem "ItemCompass";
_unit additem "ItemGPS";
_unit assignItem "ItemGPS";
_unit additem "G_Shades_Blue";
_unit assignItem "G_Shades_Blue";
_unit additem "ItemMap"; _unit assignItem "ItemMap";
_unit additem "ItemRadio"; _unit assignItem "ItemRadio";
_unit additem "ItemWatch"; _unit assignItem "ItemWatch";
_unit additem "NVGoggles"; _unit assignItem "NVGoggles";
_unit additem "acc_flashlight";
Ammo
_unit addmagazine "SmokeShell"; _unit addmagazine "SmokeShell";_unit addmagazine "SmokeShell"; _unit addmagazine "SmokeShellRed";
_unit addmagazine "Chemlight_blue";_unit addmagazine "Chemlight_yellow";_unit addmagazine "Chemlight_blue";_unit addmagazine "Chemlight_yellow";
_unit addmagazine "HandGrenade"; _unit addmagazine "HandGrenade";
_unit addmagazines ["DemoCharge_Remote_Mag",4];
_unit addmagazines ["20Rnd_762x45_mag",14];
_unit addmagazines ["16rnd_9x21_mag",4];
//_unit addmagazines ["APERSTripMine_Wire_Mag",12];
//Meds
_unit additem "FirstAidKit";
Primary
_unit addweapon "srifle_EBR_ACO_point_grip_F";
_unit addPrimaryWeaponItem "muzzle_snds_B";
_unit addprimaryweaponitem "optic_Hamr";
//_unit addprimaryweaponitem "acc_pointer_IR";
//Secondary
_unit addweapon "hgun_P07_F";
In the unit's init field after calling the script enter 'this setBehaviour "safe";'
Preview and observer behavior.
Event Timeline
Closing due to lack of activity in over five months. If the issue is still valid, please create a new ticket for it.