Author Topic: clearing?  (Read 1099 times)

how do i clear lights/emiters/cars
plz help!

and also well im at it
how do ppl get th bounty brick
in city rp???
« Last Edit: December 23, 2008, 08:37:25 PM by zookuw »

/clearvehicles   Clears all vehicles, spawns stay.
/resetvehicles   Vehicles get respawned to their spawn.

You may have to make your own bounty system.

thanks 
but how do i
get rid  of lights?

thanks 
but how do i
get rid  of lights?
No way to get rid of them.

No way to get rid of them.

You could always make something that loops through the brick group, and if it finds a brick with a light, it could setLight to none.

You could always make something that loops through the brick group, and if it finds a brick with a light, it could setLight to none.
Ha! Good idea!

Will it be laggy considering it has to go every brick continuously?

Ha! Good idea!

Will it be laggy considering it has to go every brick continuously?

It only would happen when you activated the designated serverCmd, not continuously.

It only would happen when you activated the designated serverCmd, not continuously.
Yes but it will loop on and on... imagine 40K bricks... 40,000 times :(

I don't remember how much CPU usage continuous loops do, I never checked.

In fact, I'll check right now.

Nope, no slow computer....
I made an infinite loop in Java and it only took half of the CPU!

C'mon... it adds a number infinitely.... now it's 2,000,000...
« Last Edit: December 25, 2008, 10:49:43 PM by Kalphiter »

I think he means it stops after its checks all the bricks :o

I think he means it stops after its checks all the bricks :o
Yes, the look will just break, But I tested it... 40K brick will take less than 5 seconds to check.

It'll take about the same time if you do /clearallbricks on the same build.