Steam Avatar
You aren't signed in

ZoneEvents

6 KB, 14 years ago, submitted by Melting Plastic

Dynamic Creation Of Physical Zones Around Bricks.

OUTPUT EVENTS:

    setZone: Creates or destroyes a Zone - Direction, Thinkness, Force Vector(X Y Z)

    setZoneGravity: set an already created zone's gravity(...-2, -1, 0, 0.5, 1, 1.5....)

    setZoneDrag: set an already created zone's Drag(1, 2....)

    setZoneVelocityMod: set an already created zone's Velocity Multiplier.

    setZoneIsWater: Changes whether a zone acts like water or not.

    setZoneWaterDensity: Sets the water density.

    setZoneWaterViscosity: Sets the water viscosity.
INPUT EVENTS:

    OnPlayerEnterZone: When a player enters through the zone.

    OnBotEnterZone: When a bot enters through the zone.

    OnVehicleEnterZone: When a Vehicle enters through the zone.


    OnPlayerLeaveZone: When a player exits out of the zone.

    OnBotLeaveZone: When a bot exits out of the zone.

    OnVehicleLeaveZone: When a vehicle exits out of the zone.

    OnInZone: When any object is in the zone.


Zero Gravity Areas, Boosters, Suction Cups, Blowers, Elevators, Ice, Mud, Portal Triggers, RacingCheckpoints... Are All examples of what you can do with this Mod.

FOR A GOOD START, SET UP AN EVENT LIKE THIS:

ONACTIVATE -> Self -> setZone -> (UP)(20){0}{0}{4000}
(This makes a high velocity air vent or booster)

If You set the direction to center, the Thickness parameter acts like a cube radius, set it to 0 for common purposes.

Demian
Didn't you forget to mention "OnInZone" event? Also, this is extremely useful, I use it all the time.
Melting Plastic
Your Right, I'll edit that in.
Angear
The vehicle zone events work great for substitutes for vehicle events. 5/5 from me!
Justin K.
Great
tskleine
Great
robot1
can you fix water falls i stucked!
robot1
sorry wrong addon comment
The Titanium
OnInZone desperately needs player support. Im serious, this is getting fucking annoying.
The Titanium
There is an OnPlayerInWater event, why cant you make a fucking OnPlayerInZone event? WHY!?
Blazer232
On projectile enter zone pls?
Beatboxcrapper
could you make a elevator with this events?
daSteven
Could you put in an onprojectileenterzone input even please?
It could be really useful for spaceship shields etc.. Ty if you do!
GeneralAwesome
This is just what I need for my RPG! 5 /5
Mr.slayzer
could you possibly make some vehicle events to go with this? there are currently no quality vehicle events right now
swatone
Question, can you update it so some of the following event examples, plus whatever you also add are included:
------------------------------------
OnProjectileEnterZone
OnProjectileLeaveZone
------------------------------------
OnEnemyProjectileEnterZone
OnEnemyProjectileEnterZone
------------------------------------
Have fun with these ideas.
Melting Plastic
I dont believe TorqueGameEngine Supports sensing projectiles in triggers. (Which is what zones are)
roy 225
???
Legospy
There's no events for onVehicleEnterZone>Vehicle>______ there is nothing for the ______ !!!! MAKE STUFF FOR THAT, OR PARRISH!!!!!! (and everyone in your parrish will parrish, too! XD jk)
Legospy
Still, no events for that. Not jk bout that
youtube
WHY NOT IN THE TOPLIST
Buedro
not bad....
Cheese1121
I need help. I don't know how to get the SetZoneWaterDensity or SetZoneWaterViscosity events. How do you?
xThatDudeX
dont really understand but judging by all of the fancy words in the description, it hasto be amazing!
Blockblast
Errr...It doesnt show up with Zonebricks for me.
@Blockblast Before there were the zone bricks there were just zone events so you have to get the bricks seperate
jasont
dude theres zone bricks lol fail
aware14
@jasont

You idiot. Zonebrickss are made by the same person, and its just if you dont know how to event them.
Coupon
These are the best ever. Thank you for the time you put in to this.
Zimcrawford
New idea popped in my mind.
LANDMINES!!!
NuclearReaction
@ jasont dumbass
HUNT3R
Ive had this for several months and i still dont get it... help please.
cole2
Great addon, but it needs onPlayerInZone...
this...is....AWESOME!
Coolguy2887
The driver target doesn't work for vehicle enter zone. It simply goes to the owner.
Melting Plastic
Should be Fixed.
Melting Plastic
Updated With OnInZone now Working with different targets
Venus
win =D
mitterdoo
I have no clue why when I started BL, there were 2 updates of this. v3 and v3 .___.
farsy34
i love this, i have made a zero-gravidy chamber 5/5
blocklandfan342
its pretty godd now just adsd an door like event thingy
RalphElliott
Most epic thing ever to epic in the world of epic.
Keep it up!
Ranma
ty 100000 cookies for you
DragonoidX
Needs onprojectile enterzone that would be awesome if it had that i would give it a 10/5 atm 5/5
Toxicity
Whoa
Pie Crust
Cookie 4 joo!
Jorgur
There seems to be a limit on the number of zones. And it seems deleting the bricks that created the zones does not make room for more zones.
RalphElliott
Amazing
ahmedraid
Guys Please i need your help :) ----> How can i use OnVehicleEnterZone ? the ppl say that to make a car respawn or what ever when it touchs a brick use OnVehicleEnterZone ok how!? And when i put these events on a BRICK ---> OnVehicleEnterZone -> Vehicle -> Respawn But its dont work so please i need your help :(
DannyBoy
I love these, I wish they could work when the host is not in the server though. I tried hosting a jeep sumo a while back and when they fell off the arena they went into the zone which destroyed the vehicle and killed the player but when I left the server they wouldn't work.
Blocky999
What's the update for?
Sargent A
Ty 1,000,000 Chocolate Slices for you
Blackstar
The update better have fixed the events not working when loaded.
Snick0rz
There's a big bug with this. I set up some events in order to check whether the player got an armor and rhem looking what to do.
Events:
onInZone->Player->vce_ifVariable armor >= 1
onVariableTrue->Player->AddHealth -1
onVariableFalse->Player->AddHealth -10

However, this hurts me/the owner, not the player who's in the zone. Any way to fix that?
Melting Plastic
I'll try and look into that when I get some time.
Angear
This might sound stupid but is there anyway were you can have vehicles affected by gravity switches? If you can that would be great!
flappy
a guy name fungusamongus uses this to exploit servers.
MrLoganator111
Suggestion: Add OnBallEnterZone event.
WarOfCake
@Mr

For that use On Projectile Enter Zone
Vergick
@WarOfCake

Nope, the ball isn't a projectile.
Bloukface
could you please make OnPlayerEnterZone(Team 1) and so on?
WarOfCake
@Vergick

Then use OnVehicleEnterZone
CLONEMONKEY
@WarOfCake I think he means the default sports balls.
SWAT433
@Vergick

The ball's are spawnable like projectile.

That way you can just play with balls all the time..

Balls balls balls
lego ice planet
how come theres a skull...
is it not Safe O_O
rtbandblockland
I'm scared of that skull, really. Doesn't seem like it would be unsafe or anything...
Dark Rundas
Weird this didnt use to have a skull
Dark Rundas
The Skull means it hasn't been tested by their monitors and is not a guarantee to be safe