Jump to content
Sign in to follow this  
Zombitch

Trigger on opening gearbox

Recommended Posts

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 by Zombitch

Share this post


Link to post
Share on other sites

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

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
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 by Zombitch

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  

×