Click or drag to resize
IMyCharacter Interface

[This is preliminary documentation and is subject to change.]

[Missing <summary> documentation for "T:VRage.Game.ModAPI.IMyCharacter"]

Namespace: VRage.Game.ModAPI
Assembly: VRage.Game (in VRage.Game.dll) Version: 1.0.0.0
Syntax
C#
public interface IMyCharacter

The IMyCharacter type exposes the following members.

Properties
  NameDescription
Public propertyBaseMass
Public propertyCurrentMass
Public propertyEnvironmentOxygenLevel
Public propertyIsBot
Returns true is this character is an AI character, otherwise false.
Public propertyIsPlayer
Returns true is this character is a player character, otherwise false.
Public propertySuitEnergyLevel
Returns the amount of energy the suit has, values will range between 0 and 1, where 0 is no charge and 1 is full charge.
Top
Methods
  NameDescription
Public methodGetSuitGasFillLevel
Returns the amount of gas left in the suit, values will range between 0 and 1, where 0 is no gas and 1 is full gas.
Public methodKill
Public methodTriggerCharacterAnimationEvent
Trigger animation event in the new animation system. If there is a transition leading from current animation state having same name as this event, animation state machine will change state accordingly. If not, nothing happens.
Top
Events
  NameDescription
Public eventOnMovementStateChanged
Top
See Also