Jump to content
GrogNog-e8af91c06399c530

Detect Players with Main Wepons in area

Recommended Posts

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

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
On 4/23/2021 at 11:21 PM, stanhope said:

Это одиночная или многопользовательская миссия? 

 

В случае одиночной игры: это && ((currentWeapon player)! = "")

it's a single mission
https://insider.games/best-far-cry-5-mods/

Share this post


Link to post
Share on other sites

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×