Heaney 11 Posted August 27, 2012 Is there any way to detect when a player picks up a weapon and return what weapon it is? Pick up could mean from ammobox, ground, vehicle, corpse, ect... Share this post Link to post Share on other sites
Horner 13 Posted August 27, 2012 You could run a loop that checks for the players primary weapon and/or secondary weapon slots. And when it changes you could check to see which changed the primary or secondary slot. Then return the weapon in that slot. Share this post Link to post Share on other sites
kylania 568 Posted August 27, 2012 Evolution's gear save script checked for animation states which I think would work for this instead of a loop. I remember trying something like this before and it got overcomplicated and silly. Probably a lot easier to just pick one weapon you wanted to check for and use a hasWeapon trigger for that or just check primaryWeapon like Horner said. What exactly are you trying to do anyway? Share this post Link to post Share on other sites
Heaney 11 Posted August 27, 2012 Nevermind, found a much simpler solution to what I was trying to do. Thanks for the help anyways! Share this post Link to post Share on other sites
kylania 568 Posted August 27, 2012 Nevermind, found a much simpler solution to what I was trying to do. Do tell! Chances are someone else will be trying the same thing. :) Share this post Link to post Share on other sites
Heaney 11 Posted August 27, 2012 I was just trying to make a way to log script injections (by checking when a player gets something out of nowhere) using Arma2NET (which I've been messing around with a bit), but then found the new BE logging system. Share this post Link to post Share on other sites
kylania 568 Posted August 27, 2012 Ahh, yeah, a much better approach. :) Share this post Link to post Share on other sites