Author Topic: Hey Event help  (Read 1910 times)

Hello i want to make a brick that a projectile (Bullet,Arrow,Etc) can go threw it but i want the brick to know when it went threw it.. example
Ray Casting OFF
OnProjectileGoThrough>Self>SetColor>Red ..
someone have any ideas i need this so much it's really important

you could have the brick raycasting off and use the projectile redirect event
onprojectilehit - blahblahblah
onprojectilehit - projectile - redirect - wherever you want it to go

you could have the brick raycasting off and use the projectile redirect event
onprojectilehit - blahblahblah
onprojectilehit - projectile - redirect - wherever you want it to go
i tried that but when i shoot the box from the other side the projectile comes back to me :/

No such thing exists to my knowledge.  If you post what you are trying to do with such a system, we might could help think up an alternative to what you want.

Noedit

A very roundabout method that i haven't tried is you could try using the 'bounce' feature, where two bricks are planted next to each other.  One has raycasting on, the other doesn't. Both bricks have projectile>bounce events.  When the projectile collides with the brick with raycasting, it triggers the events you want and turns off raycasting on that brick momentarily, so that the projectile may bounce off of that brick, rebound from the second brick, and exit through the previously raycasted brick.

Very roundabout, but might work.

This is actually a very good question. It took me a minute to think about this but I have found a method that works. It's better if I just show you.

For my example I used 2 1x4x1 Bricks and did this

The projectile hits the blue brick. Not the target. Irony much?
Upon impact, the projectile is deleted and the target spawns another



Hope this helps! Good luck :)



I am sorry my pictures did not upload correctly, and the help section does not have a modify button that it desperately needs, although I probably should have used the preview button first

Anyways, Here you are:



77 can you post a link to your G-RTB? I can't find it on the forums :c

I am sorry my pictures did not upload correctly, and the help section does not have a modify button that it desperately needs, although I probably should have used the preview button first

Anyways, Here you are:




Yea but i need to make alot of doors like this and i don't wanna spam alot of events and name alot of bricks i want the projectile to go through the door and when it goes threw it the door makes a sound of a bullet impact if you guys get a good solution please help me i need this :P


Sorry brah, that's all we got for you.  I'd suggest mine over goth's if you want greater accuracy with the direction of the projectile, but goth's would be less work with less accuracy.  If you want the least amount of effort for the greatest amount of accuracy, use my method with an addon called "fireRelayDirection".  With this addon, you can fire a relay to a nearby brick in a certain direction.  It adds a bit of delay for every relay, so it might not work like a namedbrick system would.

You could download the event_zones and brick_zones.

Then place a zonebrick in front of the brick you wanna break. (I'm not sure if this event exists but :P) Set the zonebrick to have event: onProjectileLeave-->namedBrick-->SetRaycasting [ ]

You could download the event_zones and brick_zones.

Then place a zonebrick in front of the brick you wanna break. (I'm not sure if this event exists but :P) Set the zonebrick to have event: onProjectileLeave-->namedBrick-->SetRaycasting [ ]

it doesn't

This is the best I've been able to do.

It uses relays too so you can just dupe it over and over. Problem is, it cannot handle more than about 5 bullets in 1 seconds, which is not a lot at all if you spray a machine gun at it.
Also, ping can interfere with this so every now and then it just wont work, and will end up firing the bullet back at you because of lag.

NOEDIT: I think the only option for your case is to try and ask someone to make an addon for this. My contraption works with 2 invisible bricks next to it, and so if you had lots of players shooting simultaneously then it would break it. There is no way of detecting projectiles, and there is no way of using VCE in a bullet's event fields.


oh yeah, and that gif thing was made using default events