|
.partEntered(Instance) and .partLeft(Instance)
PartA.partEntered:connect(function(part) -- this triggers when some other part moves inside PartA (completely) and returns that part
...
end)
PartA.partLeft:connect(function(part) -- this triggers when some part moves outside PartA (completely) and returns that part
...
end)
Both events work only if PartA is NON colliding and anchored. This can be used together with huge noncolliding anchored blocks to make such things as:
-Windy areas
-Radioactivity/other hazard of that kind areas
-Anti-grav areas
etc.etc.etc.
This example script will remove any part that falls/moves into PartA:
PartA.partEntered:connect(function(part)
part:Destroy()
end)
------------tl;dr: Add a scripting thingy that makes it possible to make area based things, such as anti-grav area.
Whatcha think?
|
|
|
Intriguing, but could use some adjustments.
>I will rip out your duodenum |
|
|
|
Perhaps the .partEntered event could be modified to be triggered if only a certain axis goes completely into the part (also applicable for .partLeft).
At first I thought there would be a problem with the part entering another "completely" but that could be adjusted with magnitude.
This event has plenty of potential, just make sure all of it gets used.
>I will rip out your duodenum |
|
DataStoreJoin Date: 2012-02-07 Post Count: 8540 |
Can already be done in at least three different ways.
* While loop, checking all parts in the Workspace and whether their positions are within the extents of a part.
* Region3WithIgnoreList
* Touched and TouchEnded. |
|
|
Never heard of Region3...
e.o |
|
DataStoreJoin Date: 2012-02-07 Post Count: 8540 |
http://wiki.roblox.com/index.php?title=Region3
Whilst it can't be rotated, it should still satisfy your needs. |
|
|
I've been playing with it a bit on my test place. It no works. T-T I'm trying to look for errors in output but I can't find any. ._.' |
|
|
While loop, checking all parts in the Workspace and whether their positions are within the extents of a part.
im sure this is really efficient |
|
DataStoreJoin Date: 2012-02-07 Post Count: 8540 |
@BothAngles,
I'm guessing that's sarcasm. If it is, I would like to point out that whilst you're laughing at the idea, that would be exactly how ROBLOX would incorporate it if they added something like this, or so I'd assume. |
|
|
Could not it be implemented by checking the position of a certain Surface and comparing it to another Surface Position by a magnitude factor?
>I will rip out your duodenum |
|
maxomega3Join Date: 2010-06-11 Post Count: 10668 |
ogm hai ret |
|
|
hi
i forgot who are u tho ;-;
|
|