Console commands at map load for clients

  • If you're asking a question make sure to set the thread type to be a question!

Washipato

L3: Member
Jun 22, 2009
149
331
Is there a way to tell to the console of the clients and server to load some commands when a map is finished loading? Thanks in advance
 

Psy

The Imp Queen
aa
Apr 9, 2008
1,706
1,491
Place a logic_auto and point_clientcommand and send outputs from the logic_auto to the point_clientcommand 'OnMapSpawn'.

You'll have to be careful what you do though. If you attempt to change server settings the changes might carry over to the maps that follow.
 

A Boojum Snark

Toraipoddodezain Mazahabado
aa
Nov 2, 2007
4,775
7,669
a logic_auto will work for point_servercommand, however point_clientcommand has to be triggered via a player themselves by means such as a trigger_multiple.
 

Washipato

L3: Member
Jun 22, 2009
149
331
Place a logic_auto and point_clientcommand and send outputs from the logic_auto to the point_clientcommand 'OnMapSpawn'.

You'll have to be careful what you do though. If you attempt to change server settings the changes might carry over to the maps that follow.
Thanks! If a player joins the map after it was loaded, will he/she get the console commands too?
 

Washipato

L3: Member
Jun 22, 2009
149
331
@ABS: Right now, I'm doing what you said to load the commands (with a trigger multiple), the problem is that I need to load them once per client.

When the map loads, there is a console message that says "themap.cfg was not found". Can a cfg help for what I want to do?