#Cooking System
1 messages · Page 1 of 1 (latest)
use touched events
what if I don't want to?
then you'll probably need to constantly check Region3 or GetPartsInPart every frame
what if I don't want to do that too?
idk, check distance every frame? rip cooking system?
there's nothing wrong with touched events, you probably just dont know how to use it properly
I don't want to check distance too
it's unreliable
skill issue
You need to do something to make it happen. Touch events are the easiest to use
touch events are equivalent to physics collisions, you just need to deal with it properly
e.g the event will rapidfire if you have an anchored part moving
probably won't fire at all if you're only changing the size (since physics) - i haven't tested this in quite a while
though if i recall if you're changing size it will rapidfire, it's been a while
i dont think the event fires if you connect to touch after the entity has been put in workspace, not sure about if you connect before then parent you'd have to check that
etc
if it doesnt fire then just do a spatial query alongside it
@sudden sphinx touched as in like a tool or do u got a drag system?
etc etc, skill issue basically. just handle the edge cases and you're good
I got a drag system