Pba (DayZ) 1 Posted March 21, 2019 Background: My unit - BLUFOR stop in front of OPFOR roadblock, and they want to controll our car ( by walking around car ). They don't know we are BLUFOR, because we wear OPFOR clothes. Problem: How to make OPFOR units in every roadblock don't shoot me until I don't shoot to them? Share this post Link to post Share on other sites
7erra 629 Posted March 22, 2019 Have your tried setCaptive? 4 hours ago, Pba (DayZ) said: They don't know we are BLUFOR, because we wear OPFOR clothes. Den Haag wants to know your location 😜 2 Share this post Link to post Share on other sites
froggyluv 2136 Posted March 22, 2019 Everything and more you'll ever need to make AI go undercover 2 Share this post Link to post Share on other sites
Grumpy Old Man 3550 Posted March 22, 2019 Barebones solution: //initPlayerLocal.sqf TAG_fnc_captiveCheck = { params ["_unit"]; _unit setCaptive true; waitUntil {currentWeapon _unit != ""}; _unit setCaptive false; {_x reveal [_unit,4]} forEach (_unit nearEntities 25); }; player spawn TAG_fnc_captiveCheck; If the player starts out unarmed, enemy AI will not engage. As soon as the player equips a weapon this will be seen as a hostile action and enemies will immediately engage if present. Cheers 4 Share this post Link to post Share on other sites
Grumpy Old Man 3550 Posted March 31, 2019 4 hours ago, 3l0ckad3 said: setFriend It's recommended not to be used during mission runtime, as stated on the wiki. Cheers 1 Share this post Link to post Share on other sites