Dziugasc Posted November 7, 2020 Share Posted November 7, 2020 Hello, I want to make camera animation when player dies, he respawns and camera starts above him. I tried using this code: function deathcinema() local x1,y1,z1 = getElementPosition( LocalPlayer ) local smoothMoveCamera ( x1, y1+10, z1, x1, y1, z1, x1, y1, z1, x1+5, x1, z1, 20000 ) end addCommandHandler("test", deathcinema) but nothing happens if I type command "test", and then when I use addEventHandler with OnPlayerWasted and it acts same. Link to comment
Moderators Patrick Posted November 7, 2020 Moderators Share Posted November 7, 2020 (edited) smoothMoveCamera function is not exists in MTA. This is an useful function what you can find on MTA Wiki: https://wiki.multitheftauto.com/wiki/SmoothMoveCamera You have to paste function's source code into your script before use it. And there are 2 other problems in your code: - LocalPlayer is not exists in 2nd line, use localPlayer instead. - local before smoothMoveCamera is incorrect in 3rd line, just remove it. Edited November 7, 2020 by Patrick 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now