Table of Contents

Interface IObjectsComponent.IManagedInterface

Namespace
SampSharp.OpenMp.Core.Api
Assembly
SampSharp.OpenMp.Core.dll

Represents the managed interface implemented by its unmanaged counterpart.

public interface IObjectsComponent.IManagedInterface : IUnmanagedInterface
Inherited Members

Methods

Create(int, Vector3, Vector3, float)

Creates a new object with the specified model ID, position, and rotation.

IObject Create(int modelID, Vector3 position, Vector3 rotation, float drawDist = 0)

Parameters

modelID int

The model ID of the object.

position Vector3

The position of the object.

rotation Vector3

The rotation of the object.

drawDist float

The draw distance of the object. Defaults to 0.

Returns

IObject

A new instance of IObject.

GetDefaultCameraCollision()

Gets the default camera collision state.

bool GetDefaultCameraCollision()

Returns

bool

true if camera collision is enabled by default; otherwise, false.

GetEventDispatcher()

Gets the event dispatcher for handling object events.

IEventDispatcher<IObjectEventHandler> GetEventDispatcher()

Returns

IEventDispatcher<IObjectEventHandler>

An event dispatcher for IObjectEventHandler.

SetDefaultCameraCollision(bool)

Sets the default camera collision state.

void SetDefaultCameraCollision(bool collision)

Parameters

collision bool

A value indicating whether camera collision is enabled by default.