User:THE OWL/Sandbox/Templates/OIF: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
'''Outputs''' are events that fire when an entity's state changes. For example, a [[logic_timer|timer]] will have an output for reaching its end, a [[func_button|button]] an output for being pressed, and a [[prop_door_rotating|door]] an output for coming to a close. [[Inputs and Outputs#Outputs|Read more]].
'''Outputs''' are events that fire when an entity's state changes. For example, a [[logic_timer|timer]] will have an output for reaching its end, a [[func_button|button]] an output for being pressed, and a [[prop_door_rotating|door]] an output for coming to a close. [[Inputs and Outputs#Outputs|Read more]].


<div style="min-height:200px; display:flex; gap:.8em">
<div style="min-height:200px; max-height:350px; display:flex; gap:.8em">
<div style="min-width:150px; display:flex; flex-direction:column; gap:.5em; background-color:rgb(255 255 255 / 10%); border-radius:.3em; user-select:none; padding:.8em">
<div style="display:flex; background-color:rgb(255 255 255 / 10%); border-radius:.3em; overflow-x:clip; user-select:none">
<div class="mw-customtoggle-E1" style="background-color:rgb(255 255 255 / 5%); border-radius:.2em; overflow:hidden; position:relative; padding:.2em .4em"> <span class="mw-collapsible" id="mw-customcollapsible-E1" style="width:100%; height:100%; background-color:rgb(255 255 255 / 5%); rotate:180deg; position:absolute; top:0; left:0"></span> <span style="position:relative"> OnMapSpawn </span> </div>
<div style="min-width:150px; overflow-y:auto; padding:.3em .8em .8em .8em">
<div class="mw-customtoggle-E2" style="background-color:rgb(255 255 255 / 5%); border-radius:.2em; overflow:hidden; position:relative; padding:.2em .4em"> <span class="mw-collapsible mw-collapsed" id="mw-customcollapsible-E2" style="width:100%; height:100%; background-color:rgb(255 255 255 / 5%); rotate:180deg; position:absolute; top:0; left:0"></span> <span style="position:relative"> OnNewGame </span> </div>
<div class="mw-customtoggle-E1" style="background-color:rgb(255 255 255 / 5%); border-radius:.2em; overflow:hidden; position:relative; padding:.2em .4em; margin-top:.5em"> <span class="mw-collapsible" id="mw-customcollapsible-E1" style="width:100%; height:100%; background-color:rgb(255 255 255 / 5%); rotate:180deg; position:absolute; top:0; left:0"></span> <span style="position:relative"> OnMapSpawn </span> </div>
<div class="mw-customtoggle-E3" style="background-color:rgb(255 255 255 / 5%); border-radius:.2em; overflow:hidden; position:relative; padding:.2em .4em"> <span class="mw-collapsible mw-collapsed" id="mw-customcollapsible-E3" style="width:100%; height:100%; background-color:rgb(255 255 255 / 5%); rotate:180deg; position:absolute; top:0; left:0"></span> <span style="position:relative"> OnLoadGame </span> </div>
<div class="mw-customtoggle-E2" style="background-color:rgb(255 255 255 / 5%); border-radius:.2em; overflow:hidden; position:relative; padding:.2em .4em; margin-top:.5em"> <span class="mw-collapsible mw-collapsed" id="mw-customcollapsible-E2" style="width:100%; height:100%; background-color:rgb(255 255 255 / 5%); rotate:180deg; position:absolute; top:0; left:0"></span> <span style="position:relative"> OnNewGame </span> </div>
<div style="background-color:rgb(255 255 255 / 5%);  border-radius:.2em; padding:.2em .4em"> OnMapTransition </div>
<div class="mw-customtoggle-E3" style="background-color:rgb(255 255 255 / 5%); border-radius:.2em; overflow:hidden; position:relative; padding:.2em .4em; margin-top:.5em"> <span class="mw-collapsible mw-collapsed" id="mw-customcollapsible-E3" style="width:100%; height:100%; background-color:rgb(255 255 255 / 5%); rotate:180deg; position:absolute; top:0; left:0"></span> <span style="position:relative"> OnLoadGame </span> </div>
<div style="background-color:rgb(255 255 255 / 5%);  border-radius:.2em; padding:.2em .4em"> OnBackgroundMap </div>
<div style="background-color:rgb(255 255 255 / 5%);  border-radius:.2em; padding:.2em .4em; margin-top:.5em"> OnMapTransition </div>
<div style="background-color:rgb(255 255 255 / 5%);  border-radius:.2em;padding:.2em .4em"> OnMultiNewMap </div>
<div style="background-color:rgb(255 255 255 / 5%);  border-radius:.2em; padding:.2em .4em; margin-top:.5em"> OnBackgroundMap </div>
<div style="background-color:rgb(255 255 255 / 5%);  border-radius:.2em; padding:.2em .4em"> OnMultiNewRound </div>
<div style="background-color:rgb(255 255 255 / 5%);  border-radius:.2em; padding:.2em .4em; margin-top:.5em"> OnMultiNewMap </div>
<div style="background-color:rgb(255 255 255 / 5%);  border-radius:.2em; padding:.2em .4em; margin-top:.5em"> OnMultiNewRound </div>
</div>
</div>
</div>
<div style="width:100%; background-color:rgb(0 0 0 / 10%); border-radius:.3em; padding:.8em 1.1em">
<div style="width:100%; display:flex; background-color:rgb(0 0 0 / 10%); overflow-x:hidden; border-radius:.3em">
<div class="mw-collapsible" id="mw-customcollapsible-E1">
<div style="display:flex; flex-direction:column; gap:1em; border-radius:.3em; overflow-y:auto; padding:.8em 1.1em">
<div style="font-size:1.2em; color:rgb(255 255 255 / 80%)"> OnMapSpawn </div> <!--
<div class="mw-collapsible" id="mw-customcollapsible-E1">
--> Fired shortly after the entity spawns (including loading saves).
<div style="font-size:1.2em; color:rgb(255 255 255 / 80%)"> OnMapSpawn </div> <!--
{{Bug|{{tf2|4}} also fires when a new round starts}}
--> Fired shortly after the entity spawns (including loading saves).
</div>
{{Bug|{{tf2|4}} also fires when a new round starts}}
<div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-E2">
</div>
<div style="font-size:1.2em; color:rgb(255 255 255 / 80%)"> OnNewGame </div> <!--
<div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-E2">
--> Fired when the map is loaded to start a new game.
<div style="font-size:1.2em; color:rgb(255 255 255 / 80%)"> OnNewGame </div> <!--
</div>
--> Fired when the map is loaded to start a new game.
<div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-E3">
</div>
<div style="font-size:1.2em; color:rgb(255 255 255 / 80%)"> OnLoadGame </div> <!--
<div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-E3">
--> Fired when the map is loaded from a saved game.
<div style="font-size:1.2em; color:rgb(255 255 255 / 80%)"> OnLoadGame </div> <!--
--> Fired when the map is loaded from a saved game. <br /> <br /> {{lorem}}{{lorem}}{{lorem}}{{lorem}}
</div>
</div>
</div>
</div>
</div>
</div>
</div>

Revision as of 23:28, 3 May 2024

Outputs are events that fire when an entity's state changes. For example, a timer will have an output for reaching its end, a button an output for being pressed, and a door an output for coming to a close. Read more.

OnMapSpawn
OnNewGame
OnLoadGame
OnMapTransition
OnBackgroundMap
OnMultiNewMap
OnMultiNewRound
OnMapSpawn
Fired shortly after the entity spawns (including loading saves).
Icon-Bug.pngBug:Team Fortress 2 Team Fortress 2 also fires when a new round starts  [todo tested in ?]
OnNewGame
Fired when the map is loaded to start a new game.
OnLoadGame
Fired when the map is loaded from a saved game.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.