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 / How Far Is a Unit?

Author
Message
CrescentMoon
14
Years of Service
User Offline
Joined: 28th Apr 2010
Location:
Posted: 18th May 2010 00:30
Okay I'm trying to make a script with the plrdistfurther command where it plays Piano music as long as the player is further than say 5 squares, but when the player comes closer to the piano, it stops playing.

I've looked it up with a search and tried finding tutorials and manuals on this but I can't figure out how far a dang unit is! xD can someone tell me how many units 1 editor square is equal to?

[WIP] Paranorma Chapter 1, The Beginnings
Level 1: The Lobby - 25% Complete
Shadowtroid
14
Years of Service
User Offline
Joined: 23rd Dec 2009
Location: nope
Posted: 18th May 2010 01:24
100, IIRC. [i][/i]

CrescentMoon
14
Years of Service
User Offline
Joined: 28th Apr 2010
Location:
Posted: 18th May 2010 01:26
thanks :3

[WIP] Paranorma Chapter 1, The Beginnings
Level 1: The Lobby - 25% Complete
Flatlander
FPSC Tool Maker
17
Years of Service
User Offline
Joined: 22nd Jan 2007
Location: The Flatlands
Posted: 18th May 2010 05:31
Slightly off topic but . . .

If one wants to use plrdistwithin the distance is kind of limited. 40/45 are good close distances. 50 works with I'd say 100% of the entities. For a lot of the entities, 35 does not work. 30 doesn't work with the majority of entities.

xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 18th May 2010 05:43 Edited at: 18th May 2010 05:46
I think (yeah, I know that's dangerous) that the distance is measured from the center of the entity. Therefore, the bigger the entity, the higher the "distwithin" must be. If an entity is 50x50, it would be impossible to get within 40 because you would push the entity around before you got within the distance.

At least that's the way it seems to work.

Login to post a reply

Server time is: 2024-11-25 00:15:01
Your offset time is: 2024-11-25 00:15:01