|
| 16 Dec 2013 11:48 PM |
First I want to tell you how I thought of this idea and I want to tell you why we need this. I realized that functions can be triggered when you touch a brick when I first started learning. However, I said to myself that it would be cool if we could script functions to trigger if you get within a certain radius a brick or any object.
Basically it causes certain events, functions and methods to be triggered when a player is within a certain radius of a part, object or model (possibly another player). |
|
|
| Report Abuse |
|
|
toxic69
|
  |
| Joined: 29 Jan 2011 |
| Total Posts: 11787 |
|
|
| 16 Dec 2013 11:53 PM |
| I think it you make a cylinder, script it where a humanoid is toughed it does what ever you are trying to get for the effect. You will have the same thing. |
|
|
| Report Abuse |
|
|
|
| 16 Dec 2013 11:54 PM |
| Yeah I know, I just wish that could add this... |
|
|
| Report Abuse |
|
|
toxic69
|
  |
| Joined: 29 Jan 2011 |
| Total Posts: 11787 |
|
|
| 17 Dec 2013 12:00 AM |
There are many features that people wish to be added. It is the question of whether Is it already able to be done Is it a WNT would it help more than hurt.
Personally I don't want more updates to my studio. They have screwed around with it ssince I joined and it almost got to the point where I couldn't even build anymore. |
|
|
| Report Abuse |
|
|
Quorum
|
  |
| Joined: 25 Oct 2013 |
| Total Posts: 4680 |
|
|
| 17 Dec 2013 12:06 AM |
No support.
Whilst there's not an inbuilt event, you can "whip your own up" using either magnitude or the 'DistanceFromCharacter' method of the player object, along with a loop or similar. |
|
|
| Report Abuse |
|
|
|
| 17 Dec 2013 12:22 AM |
2 million loops later.. @Above. |
|
|
| Report Abuse |
|
|
OKevinO
|
  |
| Joined: 05 May 2010 |
| Total Posts: 1036 |
|
|
| 17 Dec 2013 12:52 AM |
| what above comment said... just use magnitude, dont know how to use it?... its simple, look it up! |
|
|
| Report Abuse |
|
|
|
| 17 Dec 2013 10:45 AM |
| What about the distance of parts? |
|
|
| Report Abuse |
|
|
OKevinO
|
  |
| Joined: 05 May 2010 |
| Total Posts: 1036 |
|
|
| 17 Dec 2013 06:56 PM |
char = game.Players.LocalPlayer.Character
distance = (workspace.PARTNAME.Position - char.Torso.Position).magnitude
if distance <= 10 then print("you are 10 studs away from part") end
--or use a while loop so it repeats and prints it as long as you are 10 studs in. |
|
|
| Report Abuse |
|
|
|
| 17 Dec 2013 09:41 PM |
Yes that works.
no support. Already scriptable |
|
|
| Report Abuse |
|
|