Jump to content

Question


-.Paradox.-

Recommended Posts

Posted

Hi, Is it possible to cancel onPlayerWasted camera view (2D moving camera) and render a new one with setCameraMatrix and attach it to player's bone position?

If you're looking for a cheap paid scripter, don't hesitate to contact me.

Great minds discuss ideas, Average minds discuss events and small minds discuss people.

Posted (edited)

Simply just render the new camera matrix client-side on death and use the getPedBonePosition function to get the coordinates of a bone.

Edited by Guest

If I helped you, please click the like button on the right ;) Thanks!

Posted

try this

addEventHandler ( "onClientPlayerWasted", root, 
function () 
local x,y,z = getElementPosition( source ) 
local camerax, cameray, cameraz = getCameraMatrix() 
setCameraMatrix ( x, y, z, camerax, cameray, cameraz ) 
end 
) 

I'll help When I Can.

Posted
try this
addEventHandler ( "onClientPlayerWasted", root, 
function () 
local x,y,z = getElementPosition( source ) 
local camerax, cameray, cameraz = getCameraMatrix() 
setCameraMatrix ( x, y, z, camerax, cameray, cameraz ) 
end 
) 

That is not attached to the player's bone position.

If I helped you, please click the like button on the right ;) Thanks!

Posted

Calling onClientPreRender when the player is wasted right?

If you're looking for a cheap paid scripter, don't hesitate to contact me.

Great minds discuss ideas, Average minds discuss events and small minds discuss people.

Posted
Calling onClientPreRender when the player is wasted right?

Yes. Make sure to remove the event handler when they spawn again, otherwise they cannot play.

If I helped you, please click the like button on the right ;) Thanks!

Posted

Make sure to attach onClientPlayerWasted to localPlayer, because attaching it to root mean that you will be watching anyone die not only yourself.

CiTLh.png
Posted

Thanks myonlake and Tapl, I got it

If you're looking for a cheap paid scripter, don't hesitate to contact me.

Great minds discuss ideas, Average minds discuss events and small minds discuss people.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...