Author Topic: Rotating Red 2x2  (Read 8784 times)

« Last Edit: September 24, 2011, 10:10:54 PM by dargereldren »

What happened to the pink 2x2 brick?
EDIT: Page 9 Get!
Doesn't refer to my username. :P



I would have thought that the way one runs the script would be painfully obvious.

I also make add-ons.


You just need to make a subfolder in the *_* format in the Add-Ons folder, then put the code into server.cs

Then make a description.txt, put some random gibberish in there (or not), and start Blockland

Enable the subfolder's name as you would a zipped add-on (you do NOT need to zip the folder for it to run) and there you go.

I would have thought that the way one runs the script would be painfully obvious.

I also make add-ons.


You just need to make a subfolder in the *_* format in the Add-Ons folder, then put the code into server.cs

Then make a description.txt, put some random gibberish in there (or not), and start Blockland

Enable the subfolder's name as you would a zipped add-on (you do NOT need to zip the folder for it to run) and there you go.
Then how do you run it ingame?

Enable the subfolder's name as you would a zipped add-on (you do NOT need to zip the folder for it to run) and there you go.


Yes, I know how to enable it, but how do I RUN it?
Sorry if I sound like a moron.

I planted a red brick, made a script to rotate me around it (/orbit x y z r d), and set an aimbot-like script to look at a point about -2 Torque units below the brick. Then I used /orbit around the position of the brick in r increments of 5 at a distance of 6.

/orbit x y z r d

X: The X of the point you're rotating. If you want to orbit a brick, use [ID].getPosition().
Y: The Y of the point you're rotating. If you want to orbit a brick, use [ID].getPosition().
Z: The Z of the point you're rotating. If you set this to zero you get wierd drifting on Slate maps.
R: The rotation around the point. It starts at 0 North and goes 360 degrees around to your left (clockwise as seen from above the object.) Decimals work too and are recommended with large structures.
D: The distance from the point. This will never be vertical; it is a distance from the XYZ point the direction of which is defined by the R.

Thus, /orbit 100 -60 0.5 43 4 will put you 4 Torque Units away from Torque Unit point {100, -60, 0.5} at 43° clockwise of due north (relative to the point), or 47° counterclockwise of due east (relative to the point).

EDIT: You can get the ID of the brick on any server you are admin on by looking at it and using /getid. This is a default command.