Difference between revisions of "HPL3/Amnesia: Rebirth/Scripting/Agents/Ghouls"

From Frictional Wiki
Jump to navigation Jump to search
m
(use correct script template)
Line 26: Line 26:
 
== General Functions ==
 
== General Functions ==
  
 +
{{CodeDocDetailTop|Ghoul_Mode_Set}}
 
<syntaxhighlight lang="c++">void Ghoul_Mode_Set(const tString &in asAgentName, eGhoulMode aMode, bool abForce = false)</syntaxhighlight>
 
<syntaxhighlight lang="c++">void Ghoul_Mode_Set(const tString &in asAgentName, eGhoulMode aMode, bool abForce = false)</syntaxhighlight>
Puts the ghoul into a mode, which determines its behavior when it's not reacting to the player's presence.<br />
+
{{CodeDocDetailBody|Puts the ghoul into a mode, which determines its behavior when it's not reacting to the player's presence.}}
 
+
{{CodeDocDetailParamStart}}
'''asAgentName''': Name of the agent.<br />
+
{{CodeDocDetailParam|asAgentName|[[../../tString|tString]]|Name of the agent.}}
'''aMode''': Which mode to put the ghoul in.<br />
+
{{CodeDocDetailParam|aMode|[[../../tString|tString]]|Which mode to put the ghoul in.}}
'''abForce''': If true the ghoul will switch the behavior instantly regardless of state, otherwise it will do so more naturally on the next best opportunity.<br />
+
{{CodeDocDetailParam|abForce|bool|If true the ghoul will switch the behavior instantly regardless of state, otherwise it will do so more naturally on the next best opportunity.}}
 +
{{CodeDocDetailReturn|void|}}
 +
{{CodeDocDetailBottom}}
  
 
= Modes =
 
= Modes =
Line 47: Line 50:
 
=== Patrol Functions ===
 
=== Patrol Functions ===
  
 +
{{CodeDocDetailTop|Ghoul_ModePatrol_Setup}}
 
<syntaxhighlight lang="c++">void Ghoul_ModePatrol_Setup(const tString &in asAgentName, bool abRandom = false, eGhoulSpeed aSpeed = eGhoulSpeed_Walk)</syntaxhighlight>
 
<syntaxhighlight lang="c++">void Ghoul_ModePatrol_Setup(const tString &in asAgentName, bool abRandom = false, eGhoulSpeed aSpeed = eGhoulSpeed_Walk)</syntaxhighlight>
Sets up the basic parameters for the ghoul's patrol mode.<br />
+
{{CodeDocDetailBody|Sets up the basic parameters for the ghoul's patrol mode.}}
 
+
{{CodeDocDetailParamStart}}
'''asAgentName''': Name of the agent.<br />
+
{{CodeDocDetailParam|asAgentName|[[../../tString|tString]]|Name of the agent.}}
'''abRandom''': If nodes should be picked randomly, otherwise they will be picked in the order added.<br />
+
{{CodeDocDetailParam|abRandom|bool|If nodes should be picked randomly, otherwise they will be picked in the order added.}}
'''aSpeed''': The speed with which the ghoul will move.<br />
+
{{CodeDocDetailParam|aSpeed|eGhoulSpeed|The speed with which the ghoul will move.}}
 +
{{CodeDocDetailReturn|void|}}
 +
{{CodeDocDetailBottom}}
  
 +
{{CodeDocDetailTop|Ghoul_ModePatrol_AddNode}}
 
<syntaxhighlight lang="c++">void Ghoul_ModePatrol_AddNode(const tString &in asAgentName, const tString&in asNodeName, float afMinWaitTime = 0, float afMaxWaitTime= - 1,
 
<syntaxhighlight lang="c++">void Ghoul_ModePatrol_AddNode(const tString &in asAgentName, const tString&in asNodeName, float afMinWaitTime = 0, float afMaxWaitTime= - 1,
 
const tString &in asAnimName = "", bool abLoopAnim = false)</syntaxhighlight>
 
const tString &in asAnimName = "", bool abLoopAnim = false)</syntaxhighlight>
Adds a node to the list of nodes to patrol in patrol mode.<br />
+
{{CodeDocDetailBody|Adds a node to the list of nodes to patrol in patrol mode.}}
 
+
{{CodeDocDetailParamStart}}
'''asAgentName''': Name of the agent.<br />
+
{{CodeDocDetailParam|asAgentName|[[../../tString|tString]]|Name of the agent.}}
'''asNodeName''': Name of the node.<br />
+
{{CodeDocDetailParam|asNodeName|[[../../tString|tString]]|Name of the node.}}
'''afMinWaitTime''': The minimum amount of time how long the ghoul should wait at this node.<br />
+
{{CodeDocDetailParam|afMinWaitTime|float|The minimum amount of time how long the ghoul should wait at this node.}}
'''afMaxWaitTime''': The maximum amount of time how long the ghoul should wait at this node.<br />
+
{{CodeDocDetailParam|afMaxWaitTime|float|The maximum amount of time how long the ghoul should wait at this node.}}
'''asAnimName''': Name of the animation that should play when the ghoul reaches this node.<br />
+
{{CodeDocDetailParam|asAnimName|[[../../tString|tString]]|Name of the animation that should play when the ghoul reaches this node.}}
'''abLoopAnim''': If the animation should loop.<br />
+
{{CodeDocDetailParam|abLoopAnim|bool|If the animation should loop.}}
 +
{{CodeDocDetailReturn|void|}}
 +
{{CodeDocDetailBottom}}
  
 +
{{CodeDocDetailTop|Ghoul_ModePatrol_ClearNodes}}
 
<syntaxhighlight lang="c++">void Ghoul_ModePatrol_ClearNodes(const tString &in asAgentName)</syntaxhighlight>
 
<syntaxhighlight lang="c++">void Ghoul_ModePatrol_ClearNodes(const tString &in asAgentName)</syntaxhighlight>
Removes all the nodes from the patrol mode list.<br />
+
{{CodeDocDetailBody|Removes all the nodes from the patrol mode list.}}
 
+
{{CodeDocDetailParamStart}}
'''asAgentName''': Name of the agent.<br />
+
{{CodeDocDetailParam|asAgentName|[[../../tString|tString]]|Name of the agent.}}
 +
{{CodeDocDetailReturn|void|}}
 +
{{CodeDocDetailBottom}}
  
 +
{{CodeDocDetailTop|Ghoul_ModePatrol_SetSpeed}}
 
<syntaxhighlight lang="c++">void Ghoul_ModePatrol_SetSpeed(const tString &in asAgentName, eGhoulSpeed aSpeed = eGhoulSpeed_Walk)</syntaxhighlight>
 
<syntaxhighlight lang="c++">void Ghoul_ModePatrol_SetSpeed(const tString &in asAgentName, eGhoulSpeed aSpeed = eGhoulSpeed_Walk)</syntaxhighlight>
Sets the speed of movement for the current patrol mode.<br />
+
{{CodeDocDetailBody|Sets the speed of movement for the current patrol mode.}}
 
+
{{CodeDocDetailParamStart}}
'''asAgentName''': Name of the agent.<br />
+
{{CodeDocDetailParam|asAgentName|[[../../tString|tString]]|Name of the agent.}}
'''aSpeed''': The speed with which the ghoul will move.<br />
+
{{CodeDocDetailParam|eGhoulSpeed|[[../../tString|tString]]|Name of the agent.}}
 +
{{CodeDocDetailReturn|void|}}
 +
{{CodeDocDetailBottom}}
  
 
== eGhoulMode_RandomWanderArea ==
 
== eGhoulMode_RandomWanderArea ==
Line 82: Line 97:
 
=== RandomWanderArea Functions ===
 
=== RandomWanderArea Functions ===
  
 +
{{CodeDocDetailTop|Ghoul_ModeRandomWanderArea_Setup}}
 
<syntaxhighlight lang="c++">void Ghoul_ModeRandomWanderArea_Setup(const tString &in asAgentName, const cVector3f &in avAreaCenter, float afMinRadius, float afMaxRadius)</syntaxhighlight>
 
<syntaxhighlight lang="c++">void Ghoul_ModeRandomWanderArea_Setup(const tString &in asAgentName, const cVector3f &in avAreaCenter, float afMinRadius, float afMaxRadius)</syntaxhighlight>
Makes the ghoul randomly wander inside a specified area.<br />
+
{{CodeDocDetailBody|Makes the ghoul randomly wander inside a specified area.}}
 
+
{{CodeDocDetailParamStart}}
'''asAgentName''': Name of the agent.<br />
+
{{CodeDocDetailParam|asAgentName|[[../../tString|tString]]|Name of the agent.}}
'''avAreaCenter''': The center of the area.<br />
+
{{CodeDocDetailParam|avAreaCenter|[[../../cVector3f|cVector3f]]|The center of the area.}}
'''afMinRadius''': The closest distance the nodes can be picked from.<br />
+
{{CodeDocDetailParam|afMinRadius|float|The closest distance the nodes can be picked from.}}
'''afMaxRadius''': The furthest distance the nodes can be picked from.<br />
+
{{CodeDocDetailParam|afMaxRadius|float|The furthest distance the nodes can be picked from.}}
 +
{{CodeDocDetailReturn|void|}}
 +
{{CodeDocDetailBottom}}
  
 
== eGhoulMode_Guard ==
 
== eGhoulMode_Guard ==
Line 97: Line 115:
 
=== Guard Functions ===
 
=== Guard Functions ===
  
 +
{{CodeDocDetailTop|Ghoul_ModeGuard_Setup}}
 
<syntaxhighlight lang="c++">void Ghoul_ModeGuard_Setup(const tString &in asAgentName, const tString &in asLookAtEntity, const tString &in asStandPosEntity, const tString &in asIdleAnim,
 
<syntaxhighlight lang="c++">void Ghoul_ModeGuard_Setup(const tString &in asAgentName, const tString &in asLookAtEntity, const tString &in asStandPosEntity, const tString &in asIdleAnim,
 
  const tString &in asIdleSound, const tString &in asDisturbAnim, eGhoulSpeed aSpeedState = eGhoulSpeed_FastWalk)</syntaxhighlight>
 
  const tString &in asIdleSound, const tString &in asDisturbAnim, eGhoulSpeed aSpeedState = eGhoulSpeed_FastWalk)</syntaxhighlight>
Makes the ghoul enter the Guard state.<br />
+
{{CodeDocDetailBody|Makes the ghoul enter the Guard state.}}
 
+
{{CodeDocDetailParamStart}}
'''asAgentName''': Name of the agent.<br />
+
{{CodeDocDetailParam|asAgentName|[[../../tString|tString]]|Name of the agent.}}
'''asLookAtEntity''': Name of the entity to be turned toward.<br />
+
{{CodeDocDetailParam|asLookAtEntity|[[../../tString|tString]]|Name of the entity to be turned toward.}}
'''asStandPosEntity''': Name of the entity to stand at.<br />
+
{{CodeDocDetailParam|asStandPosEntity|[[../../tString|tString]]|Name of the entity to stand at.}}
'''asIdleAnim''': Name of the idle animation.<br />
+
{{CodeDocDetailParam|asIdleAnim|[[../../tString|tString]]|Name of the idle animation.}}
'''asIdleSound''': Name of the sound entity placed in the map that will be played when guarding.<br />
+
{{CodeDocDetailParam|asIdleSound|[[../../tString|tString]]|Name of the sound entity placed in the map that will be played when guarding.}}
'''asDisturbAnim''': Name of the disturbed animation.<br />
+
{{CodeDocDetailParam|asDisturbAnim|[[../../tString|tString]]|Name of the disturbed animation.}}
'''aSpeedState''': Speed state of the ghoul when moving to the stand pos.<br />
+
{{CodeDocDetailParam|aSpeedState|eGhoulSpeed|Speed state of the ghoul when moving to the stand pos.}}
 +
{{CodeDocDetailReturn|void|}}
 +
{{CodeDocDetailBottom}}
  
 
== eGhoulMode_Enthralled ==
 
== eGhoulMode_Enthralled ==
Line 115: Line 136:
 
=== Enthralled Functions ===
 
=== Enthralled Functions ===
  
<syntaxhighlight lang="c++>void Ghoul_ModeEnthralled_Setup(const tString &in asAgentName, const tString &in asLookAtEntity, const tString &in asStandPosEntity, const tString &in asIdleAnim)</syntaxhighlight>
+
{{CodeDocDetailTop|Ghoul_ModeEnthralled_Setup}}
Puts the ghoul in the enthralled state.<br />
+
<syntaxhighlight lang="c++">void Ghoul_ModeEnthralled_Setup(const tString &in asAgentName, const tString &in asLookAtEntity, const tString &in asStandPosEntity, const tString &in asIdleAnim)</syntaxhighlight>
 
+
{{CodeDocDetailBody|Puts the ghoul in the enthralled state.}}
'''asAgentName''': Name of the agent.<br />
+
{{CodeDocDetailParamStart}}
'''asLookAtEntity''': Name of the entity to be turned toward.<br />
+
{{CodeDocDetailParam|asAgentName|[[../../tString|tString]]|Name of the agent.}}
'''asStandPosEntity''': Name of the entity to stand at.<br />
+
{{CodeDocDetailParam|asLookAtEntity|[[../../tString|tString]]|Name of the entity to be turned toward.}}
'''asIdleAnim''': Name of the idle animation.<br />
+
{{CodeDocDetailParam|asStandPosEntity|[[../../tString|tString]]|Name of the entity to stand at.}}
 +
{{CodeDocDetailParam|asIdleAnim|[[../../tString|tString]]|Name of the idle animation.}}
 +
{{CodeDocDetailReturn|void|}}
 +
{{CodeDocDetailBottom}}
  
 
== eGhoulMode_Hunt ==
 
== eGhoulMode_Hunt ==
Line 135: Line 159:
 
=== StalkThroughHoles Functions ===
 
=== StalkThroughHoles Functions ===
  
 +
{{CodeDocDetailTop|Ghoul_ModeStalkThroughHoles_Setup}}
 
<syntaxhighlight lang="c++">void Ghoul_ModeStalkThroughHoles_Setup(const tString &in asAgentName, const tString &in asHoleNetwork, const tString &in asPlayerPath = "", const tString &in asHoleConnections = "", bool abHideUntilDisturbed = false)</syntaxhighlight>
 
<syntaxhighlight lang="c++">void Ghoul_ModeStalkThroughHoles_Setup(const tString &in asAgentName, const tString &in asHoleNetwork, const tString &in asPlayerPath = "", const tString &in asHoleConnections = "", bool abHideUntilDisturbed = false)</syntaxhighlight>
Sets up the basic parameters for the StalkThroughHoles mode.<br />
+
{{CodeDocDetailBody|Sets up the basic parameters for the StalkThroughHoles mode.}}
 
+
{{CodeDocDetailParamStart}}
'''asAgentName''': Name of the agent.<br />
+
{{CodeDocDetailParam|asAgentName|[[../../tString|tString]]|Name of the agent.}}
'''asHoleNetwork''': The name of the group of ghoul holes the ghoul should move between, use wildcard *.<br />
+
{{CodeDocDetailParam|asHoleNetwork|[[../../tString|tString]]|The name of the group of ghoul holes the ghoul should move between, use wildcard *.}}
'''asPlayerPath''': The name of the group of nodes that represent the general path the player will take, used to determine if a hole is ahead or behind the player, use wildcard *.<br />
+
{{CodeDocDetailParam|asPlayerPath|[[../../tString|tString]]|The name of the group of nodes that represent the general path the player will take, used to determine if a hole is ahead or behind the player, use wildcard *.}}
'''asHoleConnections''': The name of a group of areas that represent the connections between holes, the ghoul will move along these areas and make noise, use wildcard *.<br />
+
{{CodeDocDetailParam|asHoleConnections|[[../../tString|tString]]|The name of a group of areas that represent the connections between holes, the ghoul will move along these areas and make noise, use wildcard *.}}
'''abHideUntilDisturbed''': If the ghoul shouldn't emerge unless the player makes noise.<br />
+
{{CodeDocDetailParam|abHideUntilDisturbed|bool|If the ghoul shouldn't emerge unless the player makes noise.}}
 +
{{CodeDocDetailReturn|void|}}
 +
{{CodeDocDetailBottom}}
  
 
== eGhoulMode_Trapped ==
 
== eGhoulMode_Trapped ==
Line 162: Line 189:
 
  **/
 
  **/
 
void Ghoul_EatMeat(const tString &in asAgentName, const tString &in asMeatEntity)</nowiki>
 
void Ghoul_EatMeat(const tString &in asAgentName, const tString &in asMeatEntity)</nowiki>
 +
 +
PLACEHOLDER
 +
{{CodeDocSummaryTop}}
 +
{{CodeDocSummaryItem|void|[[#Button_Blink|Button_Blink]](const [[../../tString|tString]] &in asName)|Makes the button blink in accordance to how it is set up in the ent file}}
 +
{{CodeDocSummaryBottom}}
 +
 +
PLACEHOLDER
 +
{{CodeDocDetailTop|Billboard_SetBrightness}}
 +
<syntaxhighlight lang="c++">void Billboard_SetBrightness(const tString &in asBillboardName,
 +
                            float afBrightness)</syntaxhighlight>
 +
{{CodeDocDetailBody|Sets the brightness of a billboard}}
 +
{{CodeDocDetailParamStart}}
 +
{{CodeDocDetailParam|asBillboardName|[[../../tString|tString]]|name of billboard. Can contain wildcards.}}
 +
{{CodeDocDetailParam|afBrightness|float|new brightness}}
 +
{{CodeDocDetailReturn|void|}}
 +
{{CodeDocDetailBottom}}

Revision as of 10:05, 10 November 2020


Wip icon.png Basic overview of agent


Basic Overview

Map Configuration

Make sure any agents placed in your map are set to inactive. Activating them later via map script ensures that the agent can register itself with AgentBlackboard.

TODO

Scripting Setup

TODO

Modes vs Commands

Each mode contains a subset of behaviors. They define what the 'default' action for the agent should be and can be used to give different agents of the same type unique behaviors.

A command is an order issued to the agent independent of the current mode. They can be used to override the agents current action.

Unlike previous HPL titles, agents should only be commanded through modes (or commands) and NOT through changing the agent state.

General Functions

Ghoul_Mode_Set

void Ghoul_Mode_Set(const tString &in asAgentName, eGhoulMode aMode, bool abForce = false)

Puts the ghoul into a mode, which determines its behavior when it's not reacting to the player's presence.

Parameters

  • asAgentName (tString) — Name of the agent.
  • aMode (tString) — Which mode to put the ghoul in.
  • abForce (bool) — If true the ghoul will switch the behavior instantly regardless of state, otherwise it will do so more naturally on the next best opportunity.

Returns:

  • void

Modes

eGhoulMode_Idle

This is the ghouls default mode. In this mode the ghoul will remain stationary when not reacting to the player.

TODO - Verify there are no idle specific functions.

eGhoulMode_Patrol

A ghoul in patrol mode will move to specified patrol path nodes when not reacting to the player.

Patrol Functions

Ghoul_ModePatrol_Setup

void Ghoul_ModePatrol_Setup(const tString &in asAgentName, bool abRandom = false, eGhoulSpeed aSpeed = eGhoulSpeed_Walk)

Sets up the basic parameters for the ghoul's patrol mode.

Parameters

  • asAgentName (tString) — Name of the agent.
  • abRandom (bool) — If nodes should be picked randomly, otherwise they will be picked in the order added.
  • aSpeed (eGhoulSpeed) — The speed with which the ghoul will move.

Returns:

  • void

Ghoul_ModePatrol_AddNode

void Ghoul_ModePatrol_AddNode(const tString &in asAgentName, const tString&in asNodeName, float afMinWaitTime = 0, float afMaxWaitTime= - 1,
								const tString &in asAnimName = "", bool abLoopAnim = false)

Adds a node to the list of nodes to patrol in patrol mode.

Parameters

  • asAgentName (tString) — Name of the agent.
  • asNodeName (tString) — Name of the node.
  • afMinWaitTime (float) — The minimum amount of time how long the ghoul should wait at this node.
  • afMaxWaitTime (float) — The maximum amount of time how long the ghoul should wait at this node.
  • asAnimName (tString) — Name of the animation that should play when the ghoul reaches this node.
  • abLoopAnim (bool) — If the animation should loop.

Returns:

  • void

Ghoul_ModePatrol_ClearNodes

void Ghoul_ModePatrol_ClearNodes(const tString &in asAgentName)

Removes all the nodes from the patrol mode list.

Parameters

  • asAgentName (tString) — Name of the agent.

Returns:

  • void

Ghoul_ModePatrol_SetSpeed

void Ghoul_ModePatrol_SetSpeed(const tString &in asAgentName, eGhoulSpeed aSpeed = eGhoulSpeed_Walk)

Sets the speed of movement for the current patrol mode.

Parameters

  • asAgentName (tString) — Name of the agent.
  • eGhoulSpeed (tString) — Name of the agent.

Returns:

  • void

eGhoulMode_RandomWanderArea

A ghoul in the random wander area will move to random nodes within a specified area when not reacting to the player.

RandomWanderArea Functions

Ghoul_ModeRandomWanderArea_Setup

void Ghoul_ModeRandomWanderArea_Setup(const tString &in asAgentName, const cVector3f &in avAreaCenter, float afMinRadius, float afMaxRadius)

Makes the ghoul randomly wander inside a specified area.

Parameters

  • asAgentName (tString) — Name of the agent.
  • avAreaCenter (cVector3f) — The center of the area.
  • afMinRadius (float) — The closest distance the nodes can be picked from.
  • afMaxRadius (float) — The furthest distance the nodes can be picked from.

Returns:

  • void

eGhoulMode_Guard

TODO - Guard mode overview TODO - Guard vs Enthralled

Guard Functions

Ghoul_ModeGuard_Setup

void Ghoul_ModeGuard_Setup(const tString &in asAgentName, const tString &in asLookAtEntity, const tString &in asStandPosEntity, const tString &in asIdleAnim,
						   const tString &in asIdleSound, const tString &in asDisturbAnim, eGhoulSpeed aSpeedState = eGhoulSpeed_FastWalk)

Makes the ghoul enter the Guard state.

Parameters

  • asAgentName (tString) — Name of the agent.
  • asLookAtEntity (tString) — Name of the entity to be turned toward.
  • asStandPosEntity (tString) — Name of the entity to stand at.
  • asIdleAnim (tString) — Name of the idle animation.
  • asIdleSound (tString) — Name of the sound entity placed in the map that will be played when guarding.
  • asDisturbAnim (tString) — Name of the disturbed animation.
  • aSpeedState (eGhoulSpeed) — Speed state of the ghoul when moving to the stand pos.

Returns:

  • void

eGhoulMode_Enthralled

A ghoul in enthralled mode will move to a specified location when not reacting to the player.

Enthralled Functions

Ghoul_ModeEnthralled_Setup

void Ghoul_ModeEnthralled_Setup(const tString &in asAgentName, const tString &in asLookAtEntity, const tString &in asStandPosEntity, const tString &in asIdleAnim)

Puts the ghoul in the enthralled state.

Parameters

  • asAgentName (tString) — Name of the agent.
  • asLookAtEntity (tString) — Name of the entity to be turned toward.
  • asStandPosEntity (tString) — Name of the entity to stand at.
  • asIdleAnim (tString) — Name of the idle animation.

Returns:

  • void

eGhoulMode_Hunt

A ghoul in hunt mode will be always hunting the player.

TODO - Verify no hunt specific funcs

eGhoulMode_StalkThroughHoles

Mode behavior and functionality currently unknown.

StalkThroughHoles Functions

Ghoul_ModeStalkThroughHoles_Setup

void Ghoul_ModeStalkThroughHoles_Setup(const tString &in asAgentName, const tString &in asHoleNetwork, const tString &in asPlayerPath = "", const tString &in asHoleConnections = "", bool abHideUntilDisturbed = false)

Sets up the basic parameters for the StalkThroughHoles mode.

Parameters

  • asAgentName (tString) — Name of the agent.
  • asHoleNetwork (tString) — The name of the group of ghoul holes the ghoul should move between, use wildcard *.
  • asPlayerPath (tString) — The name of the group of nodes that represent the general path the player will take, used to determine if a hole is ahead or behind the player, use wildcard *.
  • asHoleConnections (tString) — The name of a group of areas that represent the connections between holes, the ghoul will move along these areas and make noise, use wildcard *.
  • abHideUntilDisturbed (bool) — If the ghoul shouldn't emerge unless the player makes noise.

Returns:

  • void

eGhoulMode_Trapped

TODO - What is this?

Command Functions

TODO

unsorted funcs

Wip icon.png Temporary


/** * Puts a ghoul in the EatMeat state and destroys the specified meat. * * @param asAgentName, name of the agent * @param asMeatEntity, name of the meat to be destroyed **/ void Ghoul_EatMeat(const tString &in asAgentName, const tString &in asMeatEntity)

PLACEHOLDER

Return Type Function and Description
void Button_Blink(const tString &in asName)
Makes the button blink in accordance to how it is set up in the ent file

PLACEHOLDER

Billboard_SetBrightness

void Billboard_SetBrightness(const tString &in asBillboardName,
                             float afBrightness)

Sets the brightness of a billboard

Parameters

  • asBillboardName (tString) — name of billboard. Can contain wildcards.
  • afBrightness (float) — new brightness

Returns:

  • void