Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Scripts / X-Y-Z Distant setting

Author
Message
Payam
15
Years of Service
User Offline
Joined: 28th Mar 2009
Location:
Posted: 10th May 2011 18:35
Hi,

There is a command called plrdistwithin which check the distant of a object to the player.

Now I wanna check X-Y-Z separately.

I couldn't find anything for it but maybe there is.

For example I wanna check an object is 300 unit far from player in X and 100 unit in Y and 40 unit in Z.
Now what should I do?

It's really important for me.

Have our guns was a mistake!!!

I am PaYaM
Ched80
14
Years of Service
User Offline
Joined: 18th Sep 2010
Location: Peterborough, UK
Posted: 11th May 2011 10:43
There is no method to check player-object distance in each individual axis using the stock FPSC engine.

Your best bet would be to modify the source (if you have the ability) or think of anyway to perform the check. maybe using trigger zones?

[url="http://raptr.com/No_Turn_Right?src=em_forum"][/url]
Payam
15
Years of Service
User Offline
Joined: 28th Mar 2009
Location:
Posted: 11th May 2011 20:32
As I am using a mod there is no way for me to modify the source because I have to use that mod.

So I have to ask the owner of the mod to do it.

I hope he accept.

Have our guns was a mistake!!!

I am PaYaM
Ched80
14
Years of Service
User Offline
Joined: 18th Sep 2010
Location: Peterborough, UK
Posted: 11th May 2011 20:52
If you're using a mod - you may already have the condition available - which mod are you using?

[url="http://raptr.com/No_Turn_Right?src=em_forum"][/url]
Payam
15
Years of Service
User Offline
Joined: 28th Mar 2009
Location:
Posted: 11th May 2011 21:10
It's WASP.

Have our guns was a mistake!!!

I am PaYaM

Login to post a reply

Server time is: 2024-11-24 08:50:09
Your offset time is: 2024-11-24 08:50:09