Author Topic: setTransform Event  (Read 1306 times)

setTransform is a default function that lets you modify an objects position and rotation.
Why not make it usable in event form?

It would need to be usable on Vehicles, Players, and Bots.  I can't think of anything else in the default target list that it would work on.

setPlayerTransform exists already and I believe that it also works with bots.

setPlayerTransform exists already and I believe that it also works with bots.
I am aware of setPlayerTransform.

The setTransform event would use the same values as the setTransform function.  Which I believe would be:
positionx positiony positionz rotationvectorx rotationvectory rotationvectorz rotation

/support

in fact, why can't you do this yourself? aren't you a relatively skilled modder?

registerOutputEvent("Player", "setTransfoorm", "vector" TAB "vector" TAB "int 0 999 0");

function player::setTransfoorm(%player, %pos, %rot, %rot2)
{
      %player.setTransform(%pos SPC %rot SPC %rot2);
}

The last param shouldn't be an int, it's a float from 0 to 2pi.

The last param shouldn't be an int, it's a float from 0 to 2pi.
So float 0 6.28318531 0.1 0?


I made the addon using your input as a guide.

http://forum.blockland.us/index.php?topic=289690.0

I used "string 30 90" instead of "vector", as vector is limited to 200 units for some reason.