In multiplayer, how do I get the player number, so I can refer to it in code?
I'm trying to make a linedef that only teleports player 1 elsewhere when it's crossed. Ideally it'd only be activated by player 1, but that's optional right now.
I've tried a "print(player);" and "print(playerobj)" and "print(trigger);", but player and playerobj just gives me crazy numbers, which are the same to both players in multiplayer, and trigger just gives me the "doomplayer" string.
Question
DU0
In multiplayer, how do I get the player number, so I can refer to it in code?
I'm trying to make a linedef that only teleports player 1 elsewhere when it's crossed. Ideally it'd only be activated by player 1, but that's optional right now.
I've tried a "print(player);" and "print(playerobj)" and "print(trigger);", but player and playerobj just gives me crazy numbers, which are the same to both players in multiplayer, and trigger just gives me the "doomplayer" string.
Share this post
Link to post
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.