Jump to content

[csgo] Trigger when no players are touching [SOLVED]


Recommended Posts

Posted (edited)

So in my map how would I trigger a teleport when all players have left spawn?

fQFRTNa.png

So when all the players are outside of the orange box, everyone gets teleported.

I hope this makes sense :P Thanks!

-pB.

Edited by pB.
Posted

What if someone stay in the spawn indefinitely?

Lapin is right tho. Alternatively you can use a game_zone_player with a logic_timer and logic_compare to count the number of players in a zone. I have an irrational distrust of triggers, this is probably unnecessary.

Posted

Have you tried OnEndTouchAll ?

Valve's Wiki says :

What if someone stay in the spawn indefinitely?

Lapin is right tho. Alternatively you can use a game_zone_player with a logic_timer and logic_compare to count the number of players in a zone. I have an irrational distrust of triggers, this is probably unnecessary.

Thanks a lot. I've gone with Klems' idea as I have already tried the triggers. Is there any way to debug the logic (debug messages etc.) as I haven't got it working yet and these would be a great help?

Posted

Thanks a lot. I've gone with Klems' idea as I have already tried the triggers. Is there any way to debug the logic (debug messages etc.) as I haven't got it working yet and these would be a great help?

You can use ent_messages_draw 1 to visualize all entity input/output. 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...