[ACS] ENTER but only for the first join?

Discuss all aspects related to modding Zandronum here.
Post Reply
User avatar
Cutman
 
Posts: 66
Joined: Mon Jun 04, 2012 2:25 pm
Contact:

[ACS] ENTER but only for the first join?

#1

Post by Cutman » Thu Jul 26, 2018 10:14 am

I need an ENTER script that only triggers upon the player first joining the game, but not after hitting spectate and rejoining again. Is there any way to do this? DISCONNECT scripts also trigger when a player hits spectate so I can't even have a server variable to keep track of that.

User avatar
Ænima
Addicted to Zandronum
Posts: 3523
Joined: Tue Jun 05, 2012 6:12 pm

Re: [ACS] ENTER but only for the first join?

#2

Post by Ænima » Fri Jul 27, 2018 12:49 am

Have that script flip a boolean switch? And also make that script instantly terminate if it finds that the bool is already positive?
­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­ ­
Doom64: Unabsolved: New weapons, monsters, and gameplay features for coop !


ZandroSkins
: a pack made by our community

Post Reply