2023-05-21: Yes, we're back. No, you can't login yet

setTransform Event

Uploaded by Dglider

The add-on board icon. Events
The add-on file name icon. Event_setTransform.zip
The add-on upload date icon. Apr 7th 2016, 1:26 AM
The add-on download count icon. 1,442

Description

Sets up the default setTransform function as an event for Players, Bots, and Vehicles.

There are two types, setTransformAA, which uses the default ingame Axis Angle rotation system. And setTransformE, which uses the more conventional 3 point rotation system.

setTransformAA Uses the game's coordinate, and rotation system. [posx posy posz] [rotvecx rotvecy rotvecz] [rottheta] You can use the admin command /gettransform on any object ingame to get these values. If you aren't admin, trial and error is your best bet. Rotation uses the axis angle formula. You define a rotation axis using the first three numbers. Then you define how much you want to rotate around that axis using the theta value. Theta can be anywhere from 0 to 2pi.

setTransformE Uses the game's coordinate system, and the conventional 3 point rotation system(x y z, in degrees. 90 is a right-angle turn). [posx posy posz] [rotx roty rotz] You can use the admin command /gettransform to get the first three values, but for the last three you are on your own.

I made a little picture guide on how to teleport a vehicle immediately after it spawns: http://forum.blockland.us/index.php?topic=289690.msg8762054#msg8762054

tldr; It's a difficult to use teleportation event that lets you assign rotation at the same time.

Comments (2)

trainspotexe
2017-04-10 17:15:49
Now I can get to the farlands super quickly! Thanks! :D
trainspotexe
2017-04-17 13:07:04
c9No Edit: Don't teleport above 1bil (1,000,000,000 on any coordinate or your screen wil trip out)