Jump to content
Sign in to follow this  
Ganvai84

How can I remove weopons from Players when they leave an area

Recommended Posts

Hey guys,

I am currently working on a christmas mission where Players can compete in a little TvT area. But I to remove the weapons they have when they leave the area (it's important for the rest of the mission they have a limited arsenal). I know there is a remove all weapons command, but how could I manage that to work when they leave the trigger area?

 

I was thinking about "Player Present" activation in the trigger and then run it on deactivation of the trigger, but how can I make it work so that it is only for the player who leaves the area and not for the rest of the server?

 

I know there is some way about locality, but I have had a break on arma editing and now my brian is stuck.

 

Thanks for the help.

 

Cheers, Jan

Share this post


Link to post
Share on other sites

@Ganvai84, insert a trigger, make it repeatable, change activation condition to

!(player inArea thisTrigger)

and on act. code to

removeAllWeapons player;

 

  • Like 1

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
Sign in to follow this  

×