GrogNog-e8af91c06399c530 0 Posted April 22, 2021 Hi, i am fairly new to coding and i am wondering is there a way to detect if a player inside of a zone designated by a trigger has a weapon out or equipped and if so change the relation between indie and blufore, so far I am using this; this && !(currentWeapon player isEqualTo "AssaultRifle"); resistance setFriend [west, 0]; west setFriend [resistance, Share this post Link to post Share on other sites
stanhope 409 Posted April 23, 2021 Is this a single or multi player mission? In case of single player: this && ((currentWeapon player) != "") Share this post Link to post Share on other sites
maxpaine 0 Posted April 23, 2021 On 4/23/2021 at 11:21 PM, stanhope said: Это одиночная или многопользовательская миссия? В случае одиночной игры: это && ((currentWeapon player)! = "") it's a single missionhttps://insider.games/best-far-cry-5-mods/ Share this post Link to post Share on other sites
GrogNog-e8af91c06399c530 0 Posted April 24, 2021 I mean multiplayer Share this post Link to post Share on other sites
pierremgi 4738 Posted April 24, 2021 player inside of a zone designated by a trigger has a weapon out or equipped Trigger must be anyPlayer present, server only this && thisList findIf {primaryWeapon _x + secondaryWeapon _x + handgunWeapon _x isNotEqualTo ""} > -1 and if so change the relation between indie and blufor resistance setFriend [west, 0]; west setFriend [resistance,0]; Note: when picking a gun from backpack as the player is already inside the trigger, it takes a little time to make the new enemies react. Say some 10 to 30 seconds! adding this line in on activation (at the end), can help: { grp1 reveal [_x,4]} forEach thislist; // where grp1 is a group supposed to react quickly (example) Share this post Link to post Share on other sites