Interface IMySpectatorTools
ModAPI interface giving access to spector control
Namespace: VRage.Game.ModAPI
Assembly: VRage.Game.dll
Syntax
public interface IMySpectatorTools
Properties
TrackedSlots
Get tracked entities
Declaration
IReadOnlyList<MyLockEntityState> TrackedSlots { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyList<MyLockEntityState> |
Methods
ClearTrackedSlot(Int32)
Removes tracking entity at slot
Declaration
void ClearTrackedSlot(int slotIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | slotIndex | Slot to remove |
GetMode()
Gets current camera work
Declaration
MyCameraMode GetMode()
Returns
Type | Description |
---|---|
MyCameraMode | Mode of work |
GetTarget()
Gets current tracked entity
Declaration
IMyEntity GetTarget()
Returns
Type | Description |
---|---|
IMyEntity | Entity |
LockHitEntity()
Lock entity that you look at
Declaration
void LockHitEntity()
NextPlayer()
Switching camera to next player
Declaration
void NextPlayer()
PreviousPlayer()
Switching camera to previous player
Declaration
void PreviousPlayer()
SaveTrackedSlot(Int32)
Save current camera and track settings at slot
Declaration
void SaveTrackedSlot(int slotIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | slotIndex | Index to save at |
SelectTrackedSlot(Int32)
Switch to selected
Declaration
void SelectTrackedSlot(int slotIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | slotIndex |
SetMode(MyCameraMode)
Set camera work mode
Declaration
void SetMode(MyCameraMode mode)
Parameters
Type | Name | Description |
---|---|---|
MyCameraMode | mode | Mode of work |
SetTarget(IMyEntity)
Set tracked target
Declaration
void SetTarget(IMyEntity ent)
Parameters
Type | Name | Description |
---|---|---|
IMyEntity | ent | Entity to follow |