Spawn Buttons - Help.
#1

Okay, so I have this issue with my script. Whenever I log in, I have to type in my password in the register system, but then it directs me to my spawn position, but in order to spawn I need to click the right/left arrow about 30 times and then press Spawn, if I dont, the screen is like.. a flashy yellow/black and then it says "Stay within the world boundaries" or something like that.

Do you guys know how to fix this? I've got it so that they spawn at Unity and the camera points at Unity when they log in, but when I finally press spawn it teleports me under Blueberry and I fall.
Reply
#2

Send us the onplayerspawn script.
Reply
#3

I guess it has to do with something like "spawn at last disconnected position" or SetSpawnInfo with wrong data. Code is needed though, especially SetPlayerPos and SetSpawnInfo.
Btw, this thread should be moved to scripting help as there is nothing related to 0.3x, but an ordinary problem.

Edit:
****** got the right answer I think.
Reply
#4

Please write back if you find the solution, I get it everytime I die ingame.

Might be the AddPlayerClass thing as that's the only thing I have not tried
Reply
#5

Quote:
Originally Posted by Johndaonee
Посмотреть сообщение
Please write back if you find the solution, I get it everytime I die ingame.

Might be the AddPlayerClass thing as that's the only thing I have not tried
Then why don't you take 3 minutes to try it instead of waiting potentially days for a response...? Not adding a class is the only time I've seen this happen.
Reply
#6

Quote:
Originally Posted by Bakr
Посмотреть сообщение
Not adding a class is the only time I've seen this happen.
I'll second this.
Reply
#7

Quote:
Originally Posted by Bakr
Посмотреть сообщение
Then why don't you take 3 minutes to try it instead of waiting potentially days for a response...? Not adding a class is the only time I've seen this happen.
Time is money and thanks for telling

// Edit.
Has nothing to do with the AddPlayerClass, damnit
Reply
#8

I'm gonna post the script later to show you guys. It still is happening.

What lines do I need to post?
Reply
#9

Does any other players have this problem too?
For me, I'll usually comment out different part of my mode until the problem doesn't exist, so that I can know which part of it causes the problem.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)