Author Topic: Improved onTouch  (Read 1291 times)

After using Hammer's event system, I would love to see something like "onStartTouch" and "onEndTouch" Which are pretty self-explanatory, and also have it count when you're in a brick without ray casting or collision.

Kind of like, as long as you're touching it(whoa), it does whatever and once you stop touching it it stops. Likool kids klubkool kids klube for the JVS button

OnStartTouch > Self > ContentStart >blah blah
OnEndTouch > Self >ContentStop> blah blah

That would be a good application.


OnTouching

This would do the exact same thing as OnPlayerTouch

anyways, you CAN do this with zones, but I do agree. I'm really not sure if it's possible without spamming or not, though :I

have it count when you're in a brick without ray casting or collision.

Zones. But good idea. :D

you can already do this, with:
onplayertouch>dostuff (delayed)
onplayertouch>self>cancelevents

that will be for onstop touch

onplayertouch>dostuff
onplayertouch>self>seteventsenabled[all but this and after][off]
onplayertouch>self>seteventsenabled[same lines as above][on] (delayed)
onplayertouch>self>cancelevents

that is for onstarttouch

Or not.  Right now, you can't make bricks do things when a player leaves the brick.

Right now, you can't make bricks do things when a player leaves the brick.
I believe Zone Events let you.

Quote
OnPlayerEnterZone>Player>Setplayerscale>0.1
OnPlayerleaveZone>Player>Setplayerscale>1
You would just have to use flat bricks.

Stop saying zone events, that's nothing like I'm saying.

This is a good idea, and I will not say "zones". So,
this idea gets  :cookie: :cookie: :cookie: :cookie: cookies.

Working on it...
Here you go!
Event_TouchEvents.zip
It worked for me while I tested it, let me know if you see any more bugs. I don't think it will cause lag, but that may just be my computer. If anyone knows of a better way to do this, let me know, but this was the only way I could think of.
« Last Edit: March 28, 2010, 04:06:32 AM by lilboarder32 »