Jump to content
saxon1

Weapon/metal detector

Recommended Posts

Hey im scanning the internet for a code to help me try and make a metal/weapon detector for my mission but ive had no luck. what im looking for is very simple:

- An object/trigger zone that detects any weapon on the player in their uniform, vest, backpack or in their hands without placing all the weapon classnames into an array in the SQF.

 

i saw the code "weapons player" that apparently does something with listing all the weapons for you, but im not sure. can anyone help me try and solve how to make an object detect a player carrying a weapon on them either through uniform/backpack/vest or hands i will be very gratefull

Share this post


Link to post
Share on other sites

if !(weapons player isEqualTo []) then {hint "you carry a weapon"};

OMG brilliant, thank you soooo much, works like a charm :)

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

×