Prop dry erase marker

From Valve Developer Community
Jump to navigation Jump to search

This is a point entity available in Half-Life: Alyx Half-Life: Alyx. A marker that can write on a dry erase board.

Keyvalues

Model (model) <model path>
Marker Type (MarkerType) <choices>
  • 0: Round Tip
  • 1: Chisel Tip
  • 2: Chalk
  • 3: Dirty
  • 4: Dried Out
  • 5: Eraser
  • 6: Square Eraser
Marker Tip Size (MarkerTipSize) <float>
The size of the tip of the marker.
Render Color (R G B) (rendercolor) <color255>
The tint color of the marker model.
Marker Color (R G B) (MarkerColor) <color255>
The color of the marker's writing on the board.
interactAs (interactAs) <string>
comma-separated list of interaction layers
Source 2 Targetname
Name (targetname) <string>
The targetname that other entities refer to this entity by.
Entity Scripts (vscripts) <scriptlist>
Space delimited list of VScript files (without file extension) that are executed after all entities have spawned. The scripts are all executed in the same script scope, later ones overwriting any identical variables and functions.
Create Client-Only Entity (clientSideEntity) <choices>
  1. No
  2. Yes
Source 2 Studiomodel 
World Model (model) <model path>
Skin (skin) <materialgroup>
Some models have multiple versions of their textures, called skins.
Body Groups (bodygroups) <bodygroupchoices>
Disable Shadows (disableshadows) <boolean>
Used to disable dynamic shadows on this entity.

Inputs

Source 2 Targetname
Kill
Removes this entity from the world.
KillHierarchy
Removes this entity and all its children from the world.
Note.pngNote: Entities already remove orphaned children upon being removed, but this input removes all children on the same frame, being marginally faster than Kill.
AddOutput <stringRedirectInput/string>
Evaluates a keyvalue/output on this entity. It can be potentially very dangerous, use with care.
KV Format: <key> <value>
I/O Format: <output name> <targetname>:<inputname>:<parameter>:<delay>:<max times to fire, -1 means infinite>
FireUser1 to FireUser4
Fire the OnUser outputs; see User Inputs and Outputs.
RunScriptFile <stringRedirectInput/string>
Execute a VScript file from disk, without file extension. The script contents are merged with the script scope of the receiving entity.
RunScriptCode <stringRedirectInput/string>
Execute a string of VScript source code in the scope of the entity receiving the input. String quotation may be needed when fired via console.
CallScriptFunction <stringRedirectInput/string>
Execute a VScript function in the scope of the receiving entity.
CallPrivateScriptFunction <stringRedirectInput/string>
Calls a script function from this entity's private script scope.
CallGlobalScriptFunction <stringRedirectInput/string>
Calls a script function in the global script scope.
Source 2 Studiomodel 
Skin <integerRedirectInput/integer>
Changes the model skin to the specified number.
DisableShadow
Turn shadow off.
EnableShadow
Turn shadow on.
AlternativeSorting <booleanRedirectInput/boolean>
Used to attempt to fix sorting problems when rendering. True activates, false deactivates
SetRenderAttribute <stringRedirectInput/string>

Outputs

Source 2 Targetname
OnUser1 to OnUser4
These Outputs each fire in response to the firing of the like-numbered FireUser1 to FireUser4 Input; see User Inputs and Outputs.
OnKilled
This Output fires when the entity is killed and removed from the game.
Studiomodel:
OnIgnite
Fired when this object catches fire.

See also