Jump to content

Question


-.Paradox.-

Recommended Posts

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 
) 

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.

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.

Posted

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

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...