Trackmania ManiaScript Reference 2025.6.19.2137
A ManiaScript Reference of the new Trackmania.
Loading...
Searching...
No Matches
CSmObject Class Reference

An instance of an object. More...

#include <doc.h>

Inheritance diagram for CSmObject:
[legend]

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

Member Enumeration Documentation

◆ EStatus

Enumerator
OnPlayer 
OnAnchor 
InWorld 
Unspawned 

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

◆ MachineState

Integer CSmObject::MachineState

◆ ModelId

Ident const CSmObject::ModelId

◆ Player

CSmPlayer* const CSmObject::Player

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

◆ Position

Vec3 const CSmObject::Position

◆ Status

CSmObject::EStatus const CSmObject::Status

◆ Throwable

Boolean CSmObject::Throwable

◆ ThrowLatestPlayerId

Ident const CSmObject::ThrowLatestPlayerId

◆ Vel

Vec3 const CSmObject::Vel

The documentation for this class was generated from the following file: