Half-Life: Alyx

Half-Life: Alyx

Expand the world of Half-Life: Alyx
Browse the Half-Life: Alyx Workshop to find the best new addons created by the community, or install the free tools yourself and start making your own Half-Life: Alyx content.
Learn More
Whats the command for: "return to the main menu" ? (i want to build a trigger to end the level)
Hello,

I would like to create a trigger for my mod that makes the player leave the level and return to the main menu.

Someone once recommended a command for this i can add to a trigger, but I can't remember what it was called.

I would really appreciate an answer or an alternative way to achieve this.

Thanks! 😊
< >
Showing 1-5 of 5 comments
Schranzi 9 Feb @ 3:58pm 
You need a Trigger, an env_fade and point_servercommand

Put all these together in Place you want and just add in the Outputs of the Trigger following:

on start touch -> env_fade -> fade
on start touch -> point_servercommand -> command-> map startup -> 2 seconds

and give it a try at least
Last edited by Schranzi; 9 Feb @ 4:04pm
Originally posted by Schranzi:
You need a Trigger, an env_fade and point_servercommand

Put all these together in Place you want and just add in the Outputs of the Trigger following:

on start touch -> env_fade -> fade
on start touch -> point_servercommand -> command-> map startup -> 2 seconds

and give it a try at least

Nice, thank you for your quick reply.
Originally posted by JediPunk:
Originally posted by Schranzi:
You need a Trigger, an env_fade and point_servercommand

Put all these together in Place you want and just add in the Outputs of the Trigger following:

on start touch -> env_fade -> fade
on start touch -> point_servercommand -> command-> map startup -> 2 seconds

and give it a try at least

Nice, thank you for your quick reply.
No Problem. Give a response please if it worked for you in this way (also for other guys)
Last edited by Schranzi; 9 Feb @ 4:09pm
Originally posted by Schranzi:
Originally posted by JediPunk:

Nice, thank you for your quick reply.
No Problem. Give a response please if it worked for you in this way (also for other guys)

Cool.
That worked very well.

I left the "env_fade" for testing (other word for lazy)

but quote: "on start touch -> point_servercommand -> command-> map startup -> 2 seconds"

worked just the way you said. Thank you.



I assume i can add other commands to the point_servercommand entity right?
This is a list with other commands. https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2040205272
Schranzi 13 Feb @ 8:18am 
As far as I know, you can only execute the commands via the console.

Example scenario :

You have a pistol with an attachment and laser, but realize that you don't want to play with these attachments, then you can use the console commands or Dev Console to spawn a pistol that doesn't have these attachments and can continue playing normally by picking them up.

Example scenario 2
If you don't feel like searching for resins or ammunition and want to spawn them, you can also do this using the console commands via the Console

Example scenario 3
If you want to use a weapon directly in the editor, for example, this is not possible by default. But you can use the console command to give yourself a weapon, for example to test in the editor whether objects take damage etc. (not talking about ingame with VR glasses).

Example scenario 4

You want to test your Mod with God Mode, then you could use the Dev Console or you could use the Console Command for Godmode via the Console
Last edited by Schranzi; 13 Feb @ 8:22am
< >
Showing 1-5 of 5 comments
Per page: 1530 50