Template:I BaseEntity (Source 2): Difference between revisions
Jump to navigation
Jump to search
(Add a template for Source 2 Inputs shared across entities, since the Source 1 template is too cluttered to even see what is going on. This is to fix Source 2 entities still using "I Targetname" and "I Parentname" deprecated templates) |
Gameplayer (talk | contribs) m (Moved template to category Input templates) |
||
Line 4: | Line 4: | ||
Currently script functions are still present in {{cs2|4}} and the respective .fgd files, despite the majority of the VScript system being disabled in the game. | Currently script functions are still present in {{cs2|4}} and the respective .fgd files, despite the majority of the VScript system being disabled in the game. | ||
[[Category: | [[Category:Input Templates|BaseEntity]] | ||
---- | ---- | ||
</noinclude><!-- | </noinclude><!-- |
Revision as of 05:22, 26 August 2024
This template is a holder for inputs that are assigned to all entities in Source 2 games.
Currently script functions are still present in Counter-Strike 2 and the respective .fgd files, despite the majority of the VScript system being disabled in the game.
Base:
- RunScriptFile
- Load and execute a script file.
- RunScriptCode
- Execute a fragment of script code.
- CallScriptFunction
- Call a script function.
- CallPrivateScriptFunction
- Calls a script function from this entity's private script scope.
- CallGlobalScriptFunction
- Calls a script function in the global script scope.
- Kill
- Removes this entity from the world.
- KillHierarchy
- Removes this entity and all its children from the world.
- AddOutput
- Adds an entity I/O connection to this entity. Parameter format: OutputName→TargetName→InputName→Parameter→Delay→MaxRefires
- FireUser1 to FireUser4
- Fires the respective
OnUser
outputs; see User Inputs and Outputs.