ManiaScript Trackmania 2020  30/10/2024
CSmObject Class Reference

An instance of an object. More...

#include <2024_10_30.h>

Inheritance diagram for CSmObject:
CEntity CNod

Public Types

enum  EStatus { OnPlayer, OnAnchor, InWorld, Unspawned }
 

Public Member Functions

Void SetAnchor (CMapObjectAnchor ObjectAnchor)
 
Void SetPlayer (CSmPlayer Player)
 
Void SetPosition (Vec3 Position)
 
Void SetPositionAndVel (Vec3 Position, Vec3 Vel)
 
Void SetUnspawned ()
 

Public Attributes

CSmObject::EStatus const Status
 
Ident const ModelId
 
CSmPlayer *const Player
 
CSmMapLandmark *const AnchorLandmark
 
Vec3 const Position
 
Vec3 const Vel
 
Integer MachineState
 
Boolean Throwable
 
Ident const ThrowLatestPlayerId
 
- Public Attributes inherited from CEntity
Ident const MarkerId
 
- Public Attributes inherited from CNod
Ident const Id
 

Detailed Description

An instance of an object.

Supported declare modes :

  • Local

Definition at line 10087 of file 2024_10_30.h.

Member Enumeration Documentation

◆ EStatus

Enumerator
OnPlayer 
OnAnchor 
InWorld 
Unspawned 

Definition at line 10092 of file 2024_10_30.h.

10092  {
10093  OnPlayer,
10094  OnAnchor,
10095  InWorld,
10096  Unspawned,
10097  };

Member Function Documentation

◆ SetAnchor()

Void CSmObject::SetAnchor ( CMapObjectAnchor  ObjectAnchor)

◆ SetPlayer()

Void CSmObject::SetPlayer ( CSmPlayer  Player)

◆ SetPosition()

Void CSmObject::SetPosition ( Vec3  Position)

◆ SetPositionAndVel()

Void CSmObject::SetPositionAndVel ( Vec3  Position,
Vec3  Vel 
)

◆ SetUnspawned()

Void CSmObject::SetUnspawned ( )

Member Data Documentation

◆ AnchorLandmark

CSmMapLandmark* const CSmObject::AnchorLandmark

Definition at line 10133 of file 2024_10_30.h.

◆ MachineState

Integer CSmObject::MachineState

Definition at line 10145 of file 2024_10_30.h.

◆ ModelId

Ident const CSmObject::ModelId

Definition at line 10105 of file 2024_10_30.h.

◆ Player

CSmPlayer* const CSmObject::Player

Player holding the object, or Null if the object isn't held by a player.

Definition at line 10129 of file 2024_10_30.h.

◆ Position

Vec3 const CSmObject::Position

Definition at line 10137 of file 2024_10_30.h.

◆ Status

CSmObject::EStatus const CSmObject::Status

Definition at line 10101 of file 2024_10_30.h.

◆ Throwable

Boolean CSmObject::Throwable

Definition at line 10149 of file 2024_10_30.h.

◆ ThrowLatestPlayerId

Ident const CSmObject::ThrowLatestPlayerId

Definition at line 10153 of file 2024_10_30.h.

◆ Vel

Vec3 const CSmObject::Vel

Definition at line 10141 of file 2024_10_30.h.


The documentation for this class was generated from the following file:
CSmObject::OnAnchor
@ OnAnchor
Definition: 2024_10_30.h:10094
CSmObject::Unspawned
@ Unspawned
Definition: 2024_10_30.h:10096
CSmObject::OnPlayer
@ OnPlayer
Definition: 2024_10_30.h:10093
CSmObject::InWorld
@ InWorld
Definition: 2024_10_30.h:10095