#How does one use the new camera set position and rotation?
1 messages · Page 1 of 1 (latest)
You need to also activate the camera
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)
ok it does work now (and has been working for the past few hours)
what are you making with it?
- A camera mode that looks at the player from far away, it fits most planets quite well.
- 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.
- maybe a camera that sees other players on the same team's perspectives.
- a side camera for in seats
- 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))
- 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
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
You’ll have issues with smoothness of cameras, just heads up
yeah I saw that, even setting the target deltatime to 0, it still lags behind a lot in seats on creations, and just general movement, making it go inside of the creation sometimes
The minimum value for the target delta time is 1/60
If the camera was a physics object it'd be much smoother but its not
oh ok