Jump to content

Respawn issue


Recommended Posts

Having an issue in my testing gamemode, when I die the camera just looks at the body back and forth and does nothing i tried adding this script but nothing changed :/

--respawning 
function respawn () 
    spawnPlayer (source, 1177.5682373047, -1323.2587890625, 14.077121734619 ) 
    outputChatBox ( getPlayerName ( source ).." died and was transported to All Saints Hospital.") 
end 
addEventHandler("onPlayerWated", getRootElement(),respawn) 

Link to comment

you therefore

AddEventHandler ("onPlayerWated" 

it is certain

AddEventHandler ("onPlayerWasted" 

script

--respawning 
function respawn () 
    spawnPlayer (source, 1177.5682373047, -1323.2587890625, 14.077121734619 ) 
    outputChatBox ( getPlayerName ( source ).." died and was transported to All Saints Hospital.") 
end 
addEventHandler("onPlayerWasted", getRootElement(),respawn) 

Link to comment

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