#How does one use the new camera set position and rotation?

1 messages · Page 1 of 1 (latest)

quaint trail
#

(it's fixed now) thought it'd be as simple as adding a camera or something to the player then changing it's position, but it seems to be doing absolutely nothing when I use the camera functions

grim loom
#

You need to also activate the camera

hollow ivy
#

Yes,

First add the camera

tm.players.AddCamera(playerID, position, rotation)

then activate it

tm.players.ActivateCamera(playerID, float:delay)

you can also deactivate it by

tm.players.DeactivateCamera(playerID, float:delay)

quaint trail
#

ok it does work now (and has been working for the past few hours)

near folio
#

what are you making with it?

quaint trail
# near folio what are you making with it?
  1. A camera mode that looks at the player from far away, it fits most planets quite well.
  2. A camera mode that looks at the map from far above, basically a map and it allows me to add flat meshes infront of the camera, almost like custom gui elements, it can be used for things like airstrikes, where if you want an arrow to point to where it strikes, however I am going to be using it to send space dogfighters (on the player's team) to attack players and other bases (like Nassau), and for picking a location where the large space ship thing like the one from high seas will "warp" to, I might also use it for camera angles on specific scenes (like peicing together broken parts of a spaceship, or a big pirate spacestation warping in above Nassau), but the 2 cameras is all I have working right now.
  3. maybe a camera that sees other players on the same team's perspectives.
  4. a side camera for in seats
  5. a tail camera for the space dogfighters (the ones you repair or trade for in the spacestations I might end up making, only they can not be detected by the space pirates (because you aren't in a seat ofc))
  6. and a camera that rotates around the sphere thing in the middle of the asteroid field when standing on it without being in a seat.

However I might not actually finish all I've planned to make

near folio
#

sounds cool, good luck

#

i was thinking of making a spectator mode mod but it seems like a spectator camera is already on your list

spare flare
#

You’ll have issues with smoothness of cameras, just heads up

quaint trail
grim loom
#

The minimum value for the target delta time is 1/60

spare flare
#

If the camera was a physics object it'd be much smoother but its not