| 
    Arma Reforger Script API
    
   | 
 
 Public Member Functions | |
| override void | OnDelete (IEntity owner) | 
| Called when Entity is being to be destroyed (deleted) or component to be deleted (see Game.DeleteScriptComponent).   | |
| override void | _WB_OnInit (IEntity owner, inout vector mat[4], IEntitySource src) | 
| Saves instance so that debug shapes can be viewed in Workbench.   | |
| override bool | _WB_OnKeyChanged (IEntity owner, BaseContainer src, string key, BaseContainerList ownerContainers, IEntity parent) | 
| Any property value has been changed. You can use editor API here and do some additional edit actions which will be part of the same "key changed" action.   | |
Static Public Member Functions | |
| static void | CreateFloorCeilingTraceShapes (World world, vector startPos, TraceParam traceParam, vector floorPos, vector ceilingPos, bool enoughSpace, string text="", string tag="") | 
| Creates debug shapes for TryGetValidFloorPosition, adds spheres, boxes, or cylinders based on trace type, and colors them based on success.   | |
| static void | AddSphere (vector center, float radius, int color, ShapeFlags shapeFlags=DEFAULT_SHAPE_FLAGS, string tag="") | 
| Adds a debug sphere at specified position with given radius and color.   | |
| static void | AddCylinderBetween (vector bottom, vector top, float radius, int color, ShapeFlags shapeFlags=DEFAULT_SHAPE_FLAGS, string tag="") | 
| Adds a debug cylinder between two points with given radius and color.   | |
| static void | AddCylinder (vector center, float radius, float length, int color, ShapeFlags shapeFlags=DEFAULT_SHAPE_FLAGS, string tag="") | 
| Adds a debug cylinder at specified position with given length, radius, and color.   | |
| static void | AddBox (vector mins, vector maxs, int color, ShapeFlags shapeFlags=DEFAULT_TRIS_FLAGS, string tag="") | 
| Adds debug box with specified min, max coordinates and color.   | |
| static void | AddText (World world, vector origin, string text, ShapeFlags shapeFlags=DEFAULT_TEXT_FLAGS, string tag="") | 
| Adds debug text at specified origin with given text.   | |
| static void | AddShape (notnull Managed shape, string tag="") | 
| Adds shape to tagged shapes array, removes oldest shape if limit exceeded.   | |
| static int | MakeTransparent (int color) | 
| Creates an ARGB color with 8% transparency from input color.   | |
| static int | GetColorBasedOnSuccess (bool success) | 
| Returns color based on success, green if true, red if false, with transparency.   | |
| static float | GetDebugRadiusFromTraceParam (TraceParam traceParam) | 
| Calculates debug radius from trace parameter, returns sphere radius if present, otherwise maximum dimension difference in box trace.   | |
| static void | RemoveShape (notnull Managed shape, string tag="") | 
| Removes shape with given tag.   | |
| static void | RemoveTag (string tag) | 
| Removes specified tag from m_mTagedShape list.   | |
| static void | Clear () | 
| Clears all tagged shapes from the list.   | |
Public Attributes | |
| int | m_iShapeLimit | 
Protected Member Functions | |
| override void | OnPostInit (IEntity owner) | 
Static Protected Attributes | |
| static SCR_DebugShapeHelperComponent | s_Instance | 
| static int | s_iShapeLimit = 10000 | 
| static bool | s_bKeepDrawList | 
| static ref map< string, ref array< ref Managed > > | s_mTaggedShapes = new map<string, ref array<ref Managed>>() | 
| static const int | DEFAULT_COLOUR = MakeTransparent(Color.YELLOW) | 
| static const ShapeFlags | DEFAULT_SHAPE_FLAGS = ShapeFlags.TRANSP | ShapeFlags.DOUBLESIDE | ShapeFlags.NOOUTLINE | 
| static const ShapeFlags | DEFAULT_SHAPE_FLAGS_NOZWRITE = ShapeFlags.TRANSP | ShapeFlags.DOUBLESIDE | ShapeFlags.NOOUTLINE | ShapeFlags.NOZWRITE | 
| static const ShapeFlags | DEFAULT_TRIS_FLAGS = ShapeFlags.TRANSP | ShapeFlags.DOUBLESIDE | ShapeFlags.NOZWRITE | 
| static const ShapeFlags | DEFAULT_TEXT_FLAGS = DebugTextFlags.CENTER | DebugTextFlags.FACE_CAMERA | 
| static const string | DEBUG_TAG = "SCR_DebugShapeHelperComponent" | 
| override void SCR_DebugShapeHelperComponent._WB_OnInit | ( | IEntity | owner, | 
| inout vector | mat[4], | ||
| IEntitySource | src ) | 
Saves instance so that debug shapes can be viewed in Workbench.
| [in] | owner | The owner represents the entity that initializes the script. | 
| [in,out] | mat | Mat is a 4x4 matrix representing the world space transformation for the entity. | 
| [in] | src | Source entity providing initialization data for the component. | 
| override bool SCR_DebugShapeHelperComponent._WB_OnKeyChanged | ( | IEntity | owner, | 
| BaseContainer | src, | ||
| string | key, | ||
| BaseContainerList | ownerContainers, | ||
| IEntity | parent ) | 
Any property value has been changed. You can use editor API here and do some additional edit actions which will be part of the same "key changed" action.
      
  | 
  static | 
Adds debug box with specified min, max coordinates and color.
| [in] | mins | Minimum coordinates for the box in 3D space. | 
| [in] | maxs | Maxs represents the maximum coordinates for the bounding box in 3D space. | 
| [in] | color | Color is an integer representing the RGB value for the box's color in debug mode. | 
      
  | 
  static | 
Adds a debug cylinder at specified position with given length, radius, and color.
| [in] | position | Represents 3D position in space for creating debug cylinder. | 
| [in] | length | Length represents the height or size of the cylinder in the 3D space for the method. | 
| [in] | radius | Represents cylinder radius in 3D space. | 
| [in] | color | Color is an integer representing the RGBA value for the cylinder's visual appearance. | 
      
  | 
  static | 
Adds a debug cylinder between two points with given radius and color.
| [in] | bottom | Bottom is the lower point of cylinder in 3D space. | 
| [in] | top | Top is the upper point of cylinder in 3D space. | 
| [in] | radius | Radius represents the cylinder's diameter in the method. | 
| [in] | color | Color parameter represents the visual appearance of the cylinder in the scene, specified by an integer value from 0 to 2 | 
      
  | 
  static | 
Adds shape to tagged shapes array, removes oldest shape if limit exceeded.
| [in] | shape | Adds shape to tagged shapes array, removes oldest shape if limit exceeded. | 
| [in] | tag | Tag is used as an identifier for grouping shapes in the method. | 
      
  | 
  static | 
Adds a debug sphere at specified position with given radius and color.
| [in] | position | Represents 3D position in space for creating debug sphere. | 
| [in] | radius | Radius represents the size of the sphere in the 3D space. | 
| [in] | color | Color is an integer representing the visual appearance of the debug sphere in the scene. | 
      
  | 
  static | 
Adds debug text at specified origin with given text.
| [in] | origin | Origin is the position in 3D space where debug text is added. | 
| [in] | text | Adds debug text at specified origin with given text. | 
      
  | 
  static | 
Clears all tagged shapes from the list.
      
  | 
  static | 
Creates debug shapes for TryGetValidFloorPosition, adds spheres, boxes, or cylinders based on trace type, and colors them based on success.
| [in] | startPos | Start position represents the initial point for creating floor and ceiling trace shapes in 3D space. | 
| [in] | traceParam | TraceParam is used to determine what shape and dimensions where traced. | 
| [out] | floorPos | Position of floor. | 
| [out] | ceilingPos | Position of ceiling. | 
| [in] | enoughSpace | Selects color based on success. | 
| [in] | text | If non-empty, creates text. | 
| [in] | tag | Used to group debug shapes togeter. Is prefixed by "SCR_DebugShapeHelper_" | 
      
  | 
  static | 
Returns color based on success, green if true, red if false, with transparency.
| [in] | success | Success represents whether an operation was successful or not in the method. | 
      
  | 
  static | 
Calculates debug radius from trace parameter, returns sphere radius if present, otherwise maximum dimension difference in box trace.
| [in] | traceParam | TraceParam represents the parameters for tracing a collision shape in 3D space. | 
      
  | 
  static | 
Creates an ARGB color with 8% transparency from input color.
| [in] | color | Transparent color component adjustment. | 
| override void SCR_DebugShapeHelperComponent.OnDelete | ( | IEntity | owner | ) | 
Called when Entity is being to be destroyed (deleted) or component to be deleted (see Game.DeleteScriptComponent).
param[in] owner Entity which owns the component
      
  | 
  protected | 
| [in] | owner | The owner represents the entity being initialized in the method, which is used to set event mask and clear debug elements. | 
      
  | 
  static | 
Removes shape with given tag.
| [in] | shape | Removes shape with given tag from m_mTaggedShape array. | 
| [in] | tag | Tag is used to identify shapes for removal from the list. | 
      
  | 
  static | 
Removes specified tag from m_mTagedShape list.
| [in] | tag | Removes tag from list of tagged shapes. | 
      
  | 
  staticprotected | 
      
  | 
  staticprotected | 
      
  | 
  staticprotected | 
      
  | 
  staticprotected | 
      
  | 
  staticprotected | 
      
  | 
  staticprotected | 
| int SCR_DebugShapeHelperComponent.m_iShapeLimit | 
      
  | 
  staticprotected | 
      
  | 
  staticprotected | 
      
  | 
  staticprotected | 
      
  | 
  staticprotected |