ManiaScript Trackmania 2020  14/07/2025
CSmObject Class Reference

An instance of an object. More...

#include <2025_07_14.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 10115 of file 2025_07_14.h.

Member Enumeration Documentation

◆ EStatus

Enumerator
OnPlayer 
OnAnchor 
InWorld 
Unspawned 

Definition at line 10120 of file 2025_07_14.h.

10120  {
10121  OnPlayer,
10122  OnAnchor,
10123  InWorld,
10124  Unspawned,
10125  };

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 10161 of file 2025_07_14.h.

◆ MachineState

Integer CSmObject::MachineState

Definition at line 10173 of file 2025_07_14.h.

◆ ModelId

Ident const CSmObject::ModelId

Definition at line 10133 of file 2025_07_14.h.

◆ Player

CSmPlayer* const CSmObject::Player

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

Definition at line 10157 of file 2025_07_14.h.

◆ Position

Vec3 const CSmObject::Position

Definition at line 10165 of file 2025_07_14.h.

◆ Status

CSmObject::EStatus const CSmObject::Status

Definition at line 10129 of file 2025_07_14.h.

◆ Throwable

Boolean CSmObject::Throwable

Definition at line 10177 of file 2025_07_14.h.

◆ ThrowLatestPlayerId

Ident const CSmObject::ThrowLatestPlayerId

Definition at line 10181 of file 2025_07_14.h.

◆ Vel

Vec3 const CSmObject::Vel

Definition at line 10169 of file 2025_07_14.h.


The documentation for this class was generated from the following file:
CSmObject::OnAnchor
@ OnAnchor
Definition: 2025_07_14.h:10122
CSmObject::Unspawned
@ Unspawned
Definition: 2025_07_14.h:10124
CSmObject::OnPlayer
@ OnPlayer
Definition: 2025_07_14.h:10121
CSmObject::InWorld
@ InWorld
Definition: 2025_07_14.h:10123