Skip to content

Latest commit

 

History

History
42 lines (34 loc) · 2.25 KB

2860.md

File metadata and controls

42 lines (34 loc) · 2.25 KB

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
{% highlight php %}{% raw %} 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(); } } {% endraw %}{% endhighlight %}
and change it to

{% highlight php %}{% raw %} 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(); {% endraw %}{% endhighlight %}
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!