Zombitch 10 Posted September 1, 2013 (edited) Hi guys, I have a map with a player and one gearbox. I would like to succeed the current task when the gearbox is opened. I know how to deal with task and trigger, the only thing I need is : how to check the player "open" a specified gearbox ? In fact in my trigger condition I would like something like : isOpened(my_gearbox) But I don't know if it's even possible. I'll appreciate your help :p Thanks. Edited September 2, 2013 by Zombitch Share this post Link to post Share on other sites
kylania 568 Posted September 1, 2013 There's this thread that has some information for that I think. Share this post Link to post Share on other sites
Zombitch 10 Posted September 2, 2013 Thanks for your answer. I checked your link, and indeed it shows how to know when the player inventory opened. The fact is the player can open his inventory without opening a gearbox, or he can also open another gearbox than the one I want him to open. So the problem still unsolved :p If someone know how to do this, I'll be very grateful :). Otherwise I will do it using another way. Share this post Link to post Share on other sites
KevsNoTrev 44 Posted September 2, 2013 Could you make it a combination of distance from the gearbox , cursortarget=gearbox, and the bit you found in the other thread? Share this post Link to post Share on other sites
Zombitch 10 Posted September 2, 2013 (edited) Could you make it a combination of distance from the gearbox , cursortarget=gearbox, and the bit you found in the other thread? Yeah it could be done like this I think. So I guess I 'll have to write something like that : (player distance my_gearbox) < 20 && cursortarget==my_gearbox This way I'll check the player is near the gearbox and he is aiming the gearbox. I am at work at the moment, I will try this later and I keep you informed. Thanks for the tips ;) EDIT : I confirm the line code works ! Edited September 2, 2013 by Zombitch Share this post Link to post Share on other sites