Author Topic: Vehicles... Why  (Read 1231 times)

Could I have an explanation why vehicles cannot work with events?

Also, we had Space Guy's events able to cope with them. Why don't they work now? I just would like a simple explanation or something...
« Last Edit: September 15, 2008, 06:53:55 AM by BlockBrain »

OhaiThar :D


 That is true, how they worked with V8's wrench events. How come they wouldn't work now?

In v8, I was using a tick-based event system - every ten milliseconds, I did a box search on every brick that was checking for vehicles touching it. This was quite slow sometimes when servers had a lot of these bricks.

Now, v9 used a trigger-based system - when X happens, do something - the only way bricks can detect players now is through the engine code. For whatever reason, Badspot did not include a check for vehicles in the same way, so it's nearly impossible to implement without laggy/hacky code.