Jump to content

I spawn somewhere different


swag_k_dog

Recommended Posts

Posted
function spawnOnLogin (prevA, curA )
	outputChatBox ("Welcome to APB Reloaded", source, 255, 0, 0, false)
	spawnPlayer (source, 881, -1101, 24.3, 0) 
	fadeCamera (source, true)
	setCameraTarget (source, source)
end
addEventHandler("onPlayerLogin", getRootElement(), spawnOnLogin)

I set the coords to 881, -1101 and 24.3 but it spawns me at 2167, 1397, 10.8 why???

Posted
11 hours ago, swag_k_dog said:

it spawns you in the LS graveyard?

There might be some other code which sets the player's position. For example when you login, you spawn and the play resource sets your position to a random spawn point.

  • Like 1
Posted
9 hours ago, Gravestone said:

There might be some other code which sets the player's position. For example when you login, you spawn and the play resource sets your position to a random spawn point.

thanks, 

the teleport was caused by another code in a resource, deleted the code.. thanks!

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