Editing Additions to existing entities

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 627: Line 627:
**Rotate relative to parent (world)
**Rotate relative to parent (world)
*$GetEntIndex <string>
*$GetEntIndex <string>
**Triggers the input of an entity, with entity index as parameter
**parameter format: entity|input
**parameter format: entity|input
**example: !activator|$DisplayTextCenter
**example: !activator|$DisplayTextCenter
**Triggers the input of an entity, with entity index as parameter
*$RemoveOutput <string>
*$RemoveOutput <string>
**remove outputs with given name
**remove outputs with given name
Line 641: Line 641:
**Set keyvalue to specified value
**Set keyvalue to specified value
*$GetKey$(keyvalue name) <string>
*$GetKey$(keyvalue name) <string>
**Trigger the input of an entity, with keyvalue as a parameter (default value if not found)
**example: $GetKey$startdisabled
**parameter format: entity|input|default value
**parameter format: entity|input|default value
**example: !activator|$DisplayTextCenter|def
**example: !activator|$DisplayTextCenter|def
** Trigger the input of an entity, with keyvalue as a paramer (default value if not found)
*$SetVar$(variable name) <string>  
*$SetVar$(variable name) <string>  
**Set custom entity variable
**Set custom entity variable
*$GetVar$(variable name) <string>
*$GetVar$(variable name) <string>
**Trigger the input of an entity, with custom variable as set with $SetVar as a parameter (default value if not found)
**example: $GetVar$customvar
**parameter format: entity|input|default value
**parameter format: entity|input|default value
**parameter example: !activator|$DisplayTextCenter|def
**example: !activator|$DisplayTextCenter|def
**Trigger the input of an entity, with variable as a paramer (default value if not found)
*$SetData$([https://raw.githubusercontent.com/powerlord/tf2-data/master/datamaps.txt datamap] prop name) <string>
*$SetData$([https://raw.githubusercontent.com/powerlord/tf2-data/master/datamaps.txt datamap] prop name) <string>
**Set datamap property to specified value
**Set datamap property to specified value
*$GetData$([https://raw.githubusercontent.com/powerlord/tf2-data/master/datamaps.txt datamap] prop name) <string>
*$GetData$([https://raw.githubusercontent.com/powerlord/tf2-data/master/datamaps.txt datamap] prop name) <string>
**Trigger the input of an entity, with datamap prop as a parameter (default value if not found)
**example: $GetData$m_szNetname
***Unlike send props, datamaps do not have arrays.
**parameter format: entity|input|default value
**parameter format: entity|input|default value
**parameter example: !activator|$DisplayTextCenter|def
**example: !activator|$DisplayTextCenter|def
***Default value is not required to be defined, but can be useful for debugging.
**Trigger the input of an entity, with datamap prop as a paramer (default value if not found)
*$SetProp$([https://raw.githubusercontent.com/powerlord/tf2-data/master/netprops.txt send prop] name)[$(array)] <string>
*$SetProp$([https://raw.githubusercontent.com/powerlord/tf2-data/master/netprops.txt send prop] name)[$(array)] <string>
**Set send property to specified value. Can also set arrays.
**Set send property to specified value. Can also set arrays.
Line 668: Line 663:
***sets player ammo type array to 3, which is metal carried
***sets player ammo type array to 3, which is metal carried
*$GetProp$([https://raw.githubusercontent.com/powerlord/tf2-data/master/netprops.txt send prop] name)[$(array)] <string>
*$GetProp$([https://raw.githubusercontent.com/powerlord/tf2-data/master/netprops.txt send prop] name)[$(array)] <string>
**Trigger the input of an entity, with the specified send prop's value as a parameter (default value if not found)
**example without array: $GetProp$m_bInUpgradeZone
**example with an array: $GetProp$m_iAmmo$3
**parameter format: entity|input|default value
**parameter format: entity|input|default value
**parameter example: !activator|$DisplayTextCenter|def
**example: !activator|$DisplayTextCenter|def
***Default value is not required to be defined, but can be useful for debugging.
**Trigger the input of an entity, with send prop as a paramer (default value if not found)
*$SetClientProp$([https://raw.githubusercontent.com/powerlord/tf2-data/master/netprops.txt send prop] name)[$(array)] <string>
*$SetClientProp$([https://raw.githubusercontent.com/powerlord/tf2-data/master/netprops.txt send prop] name)[$(array)] <string>
**Set fake send prop value only seen by players. Can also set arrays. Useful for setting fake mission name or wave number, as $SetProp would trigger unwanted behavior  
**Set fake send prop value only seen by players. Can also set arrays. Useful for setting fake mission name or wave number, as $SetProp would trigger unwanted behavior  
Please note that all contributions to SigMod are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see SigMod:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)