Page MenuHomeFeedback Tracker

setBehavior "safe" w/o rifle infinite loop
Closed, ResolvedPublic

Description

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.

Details

Legacy ID
2581738671
Severity
Minor
Resolution
Open
Reproducibility
Always
Category
AI Issues
Steps To Reproduce

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

whiskey131 edited Additional Information. (Show Details)
whiskey131 set Category to AI Issues.
whiskey131 set Reproducibility to Always.
whiskey131 set Severity to Minor.
whiskey131 set Resolution to Open.
whiskey131 set Legacy ID to 2581738671.May 7 2016, 1:02 PM
MadDogX added a subscriber: MadDogX.May 7 2016, 1:02 PM

Closing due to lack of activity in over five months. If the issue is still valid, please create a new ticket for it.