Question about spawning
#1

Hello, i was wondering if anyone would be able to tell me what callback occurs when a player dies and is about to respawn. What decides it's spawn location, if for example there is no added player classes (AddPlayerClass). And also, when does OnPlayerRequestClass get called? Sorry if this was asked before, i couldn't find an answer anywhere. Thanks
Reply
#2

There must always at least be one class otherwise you will get glitched upon spawning ("stay within the world boundaries"). Where the player spawns is defined by the selected class, unless these values were overridden with SetSpawnInfo.
Reply
#3

Ok, but if i set someone's spawn info when he registeres, and then he changes the spawn afterwards, will OnPlayerSpawn check to see if there is a new spawn info or will it just spawn the old one?
Reply
#4

Set cords to where ever you want to spawn him under OnPlayerSpawn
Reply
#5

And what about OnPlayerRequestClass and OnPlayerRequestSpawn? should i put SpawnPlayer(playerid);, return them 0 or just leave them empty?

If i'm setting the spawn info on OnPlayerSpawn
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)