SRB2 Message Board  

Go Back   SRB2 Message Board > Sonic Robo Blast 2 > Editing > Editing Help

Reply
 
Thread Tools Search this Thread
Old 09-19-2016   #1
Rapidgame7
Rookie modder
 
Rapidgame7's Avatar
Default How to check when a player respawns in a starpost?

The PlayerSpawn hook does what it says: It checks when a player spawns and returns the spawning player.
The problem is that the hook doesn't trigger when a player respawns in a starpost.
In gamemodes where there are no starposts to respawn to (resulting in players reappearing in player spawn points), the hook triggers. Otherwise, if the player is set to reappear on a starpost, the hook never triggers.

The question is, how do I check when a player respawns in a starpost?

I tried using MobjSpawn and checking for MT_PLAYER, but mobj.player is not initialized when the mobj spawns.
__________________
Lost interest on modding for a while...
Rapidgame7 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:52 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.