book_4_sparkGenerated
code_blocksInput

Description

The IsStandableSurface method is a virtual method in the MoveMode class within the Sandbox.Movement namespace. This method is used to determine if a given surface, represented by a SceneTraceResult, is suitable for a character to stand on. It returns a boolean value indicating whether the surface is standable.

Usage

To use the IsStandableSurface method, you need to have an instance of a class that derives from MoveMode. You will also need a SceneTraceResult object that represents the surface you want to check. Call the method with the SceneTraceResult as a parameter to determine if the surface is standable.

Example

// Assuming 'moveMode' is an instance of a class derived from MoveMode
// and 'traceResult' is a SceneTraceResult object
bool canStand = moveMode.IsStandableSurface(traceResult);

if (canStand)
{
    // The surface is standable
}
else
{
    // The surface is not standable
}