Description
The AllowGrounding
property is a boolean flag within the MoveMode
class of the Sandbox.Movement
namespace. It determines whether the character is allowed to be grounded during movement. This property is virtual, allowing derived classes to override its behavior if necessary.
Usage
To use the AllowGrounding
property, you can access it directly from an instance of a class that derives from MoveMode
. You can get or set this property to control whether the character should be grounded.
Example
// Example of accessing the AllowGrounding property
// Assuming 'moveMode' is an instance of a class derived from MoveMode
bool isGroundingAllowed = moveMode.AllowGrounding;
// To set the property
moveMode.AllowGrounding = true;