Distance Watch

Having technical issues? Please post them in here.

Distance Watch

Postby kathuriaankur.dr » Tue Mar 15, 2011 5:47 pm

Hello

I try to do following task

If a player distances is greater than 5 then it should say You are to far
If a player distance is less than 4 it should say u r to close
If a player distance is between say 4 and 5 is correct

So I need to store the distance it’s on in a variable, how can I do that or what will the logic to achieve the above task

Please Help

Thanks
kathuriaankur.dr
 
Posts: 11
Joined: Fri Feb 25, 2011 2:44 pm

Re: Distance Watch

Postby Gary » Wed Mar 16, 2011 12:33 pm

The only way I can think of accomplishing this is to use 2 separate distance watches and some logic gates. If a certain distance watch is triggered then flow the logic to display the correct message.

Thanks Gary
Gary Alan Morris
Support Analyst
Caspian Learning
gary.morris@caspianlearning.co.uk
Gary
 
Posts: 99
Joined: Wed Jan 12, 2011 5:31 pm

Re: Distance Watch

Postby Alan » Wed Mar 16, 2011 12:46 pm

Try some logic similar to below, this may not work exactly as you require, but something close to it should.

ExampleLogic.png
ExampleLogic.png (133.71 KiB) Viewed 519 times
Alan
 
Posts: 121
Joined: Tue Oct 19, 2010 3:39 pm

Re: Distance Watch

Postby kathuriaankur.dr » Wed Mar 16, 2011 2:32 pm

Thanks for the reply

I have tried it and made the adjustments according to how I need it. But still I am having the same issues.It shows too close and then too far message instantly. Also once the message is displayed it will not check it again.

It will make it so simpler if I could store the current distance in a variable and keep on showing the message until the task is completed successfully.

Please Advice

Thanks
kathuriaankur.dr
 
Posts: 11
Joined: Fri Feb 25, 2011 2:44 pm


Return to Technical Support

Who is online

Users browsing this forum: No registered users and 2 guests

cron