Show / Hide Table of Contents

Interface IMyIdentity

Describes player or bot (mods interface)

Namespace: VRage.Game.ModAPI
Assembly: VRage.Game.dll
Syntax
public interface IMyIdentity

Properties

ColorMask

The player's model color mask

Declaration
Nullable<Vector3> ColorMask { get; }
Property Value
Type Description
System.Nullable<Vector3>

DisplayName

Name of player.

Declaration
string DisplayName { get; }
Property Value
Type Description
System.String

IdentityId

Player's unique identity id.

Declaration
long IdentityId { get; }
Property Value
Type Description
System.Int64
Remarks

This will change when the player dies with permadeath enabled.

IsDead

Gets if the player is dead

Declaration
bool IsDead { get; }
Property Value
Type Description
System.Boolean

Model

Gets the model the player is using.

Declaration
string Model { get; }
Property Value
Type Description
System.String

PlayerId

Declaration
long PlayerId { get; }
Property Value
Type Description
System.Int64

Events

CharacterChanged

Triggered when the player's character changes.

Declaration
event Action<IMyCharacter, IMyCharacter> CharacterChanged
Event Type
Type Description
System.Action<IMyCharacter, IMyCharacter>
Remarks

First Action argument is old character; second is new character.

☀
☾
In This Article
Back to top
Generated by DocFX
☀
☾