For example move the camera 3m above the player’s head
You can use Start camera
For the “Eye position” use a ray cast position to prevent the camera to go trought walls and add things like a vector, the event player, the facing direction
For the “Look at position” part, just set it to event player + facing direction*100
For the “Blend speed” I would recomend a pretty high value but not 0, or it won’t feel smooth, you want a high value so when you tp, the camera comes quickly
I made one here if you want to see it
actions
{
Start Camera(Event Player, Ray Cast Hit Position(Event Player, Add(Add(Add(Event Player, World Vector Of(Vector(0, 0.400, -0.700),
Event Player, Rotation)), Multiply(Up, 1.500)), Multiply(Facing Direction Of(Event Player), -2.000)), Empty Array, Empty Array,
False), Add(Event Player, Multiply(Facing Direction Of(Event Player), 100)), 50);
}
1 Like
ok thanks.Now i know how that works.
You can use the following
code
actions
{
Start Camera(Event Player, World Vector Of(Vector(0, 2, -2.000), Event Player, Rotation And Translation), World Vector Of(Vector(0,
1, 5), Event Player, Rotation And Translation), 200);
}
Also you can see my game mod where I am using it: MXJSG.
Other my game mods can be found here.