Modme Forums

NSZ Teleporter teleports players one by one

Game Modding | Call of Duty: Black Ops 3 | Scripting


Kenny:

Heyo!

Pretty simple question: If multiple players are in the Teleporter (NSZ's Teleporter) then they get teleported one by one.
Is this normal behaviour? How can i make them teleport all at the same time?

Thanks for any help! :)


jfuvv:

yeah its normal i think its because players get suck in the teleporter loop when they all go at once dont quote me on that tho


Spiki:

Heyo!

Pretty simple question: If multiple players are in the Teleporter (NSZ's Teleporter) then they get teleported one by one.
Is this normal behaviour? How can i make them teleport all at the same time?

Thanks for any help! :)


find
for( i=0;i<players.size;i++ )
        {
            if( players[i] isTouching(radius) )
            {
                players[i] thread tele_to_room( level.time_in_pap, i );
                teleporter_sounds();
            }
        }

and change it to

for( i=0;i<players.size;i++ )
        {
            if( players[i] isTouching(radius) )
            {
                players[i] thread tele_to_room( level.time_in_pap, i );
            }
        }
       thread teleporter_sounds(); 

the function teleporter_sounds has a 3 second wait in it and is played after selecting every player hence the delay


Kenny:

thank you so much , it works perfectly!