Author Topic: Is there a onVehicleTouch?  (Read 520 times)

Heeeeyo,
Right now im messing around trying to make "Saggy Speedway", A speedkart map. When the final lap is going and the first kart crosses the line i want it to reset the server, tell the minigame who won, send the winner to a winning room, add points, etc. BUT... i cant find an add-on "onVehicletouch" I tryed the defualt add-on "onVehicleEnter" but i dont understand it. and its not working. So please help! Thankya!

(OnVehicleEnter triggers when a player enters the vehicle.)

OnVehicletouch no longer exists. You should download Zone Bricks from RTB. It includes OnVehicleEnterZone, which triggers when the vehicle enters a zone.



OT:
When you get zonebricks, place one at the finish line and put

Onvehicleenterzone>Minigame>end
Onvehicleenterzone>Minigame>centerprintall>%1 Won!!
Onvehicleenterzone>NamedBrick*fireworks*>SpawnProjectile>Fireworks Blue>0,0,40

OT:
When you get zonebricks, place one at the finish line and put

Onvehicleenterzone>Minigame>end
Onvehicleenterzone>Minigame>centerprintall>%1 Won!!
Onvehicleenterzone>NamedBrick*fireworks*>SpawnProjectile>Fireworks Blue>0,0,40
No no no, that will show everyone's name.
Like this,
Say a player named SupahDSi won.
Instead of saying SupahDSi WON!!!,
It would say YOUR NAME HERE WON!!!

Ok... now i need help with zonebricks... I downloaded it and tested it but i cant get it to work.. what do i do to the empty boxes and which do i choose... center east north south up down etc... i dont no know to usee ittt!

use OnBotTouch, as vehicles are bots AFAIK.

This is exactly what you need to do.

For a finish line that resets the minigame and displays who won.  This is for a single lap race.

Code: [Select]
[0] [Onvehicleenterzone] [Minigame] [VCE_Modvariable] [Win] [Set] [<var:cl:name>]
[1] [Onvehicleenterzone] [Minigame] [Centerprintall] [<var:mg:Win> won] [3]
[2] [Onvehicleenterzone] [Minigame] [Reset]

This is as simplified as I can make it without giving to much out, I wouldn't want to take the challenge away from you.

Oh ya, you need VCE too.

This is exactly what you need to do.

For a finish line that resets the minigame and displays who won.  This is for a single lap race.

Code: [Select]
[0] [Onvehicleenterzone] [Minigame] [VCE_Modvariable] [Win] [Set] [<var:cl:name>]
[1] [Onvehicleenterzone] [Minigame] [Centerprintall] [<var:mg:Win> won] [3]
[2] [Onvehicleenterzone] [Minigame] [Reset]

This is as simplified as I can make it without giving to much out, I wouldn't want to take the challenge away from you.

Oh ya, you need VCE too.

This is the part that i know how to do! I need help "SETTING THE ZONE". But thank you!

This is the part that i know how to do! I need help "SETTING THE ZONE". But thank you!

You can manually set a zone by planting a regular brick, then using zone setting events to make the zone, or, you can tab over to the Zonebricks tab in the bricks menu, select an appropriate size, then use the above events on that brick.

But here are the events for setting up a zone.

Code: [Select]
[Onactivate] [Self] [Setzone] [Center] [0 0 0]

I wouldn't suggest doing this, as its a waste of time, unless you need a specific size or shape, such as using this on ramp bricks for a roof to keep precipitation out of your building.

THANKS it works perfect:D