Click or drag to resize

IGameObject Interface

Contains methods and properties for accessing a SA-MP object of any type.

Namespace:  SampSharp.GameMode.World
Assembly:  SampSharp.GameMode (in SampSharp.GameMode.dll) Version: 0.0.0-local+709673996c0cc3c0733358a87691d1009326afa7
Syntax
C#
public interface IGameObject : IWorldObject

The IGameObject type exposes the following members.

Properties
  NameDescription
Public propertyDrawDistance
Gets the draw distance of this IGameObject.
Public propertyIsMoving
Gets whether this IGameObject is moving.
Public propertyIsValid
Gets whether this IGameObject is valid.
Public propertyModelId
Gets the model of this IGameObject.
Public propertyPosition
Gets the position of this IWorldObject.
(Inherited from IWorldObject.)
Public propertyRotation
Gets the rotation of this IGameObject.
Top
Methods
  NameDescription
Public methodMove(Vector3, Single)
Moves this IGameObject to the given position with the given speed.
Public methodMove(Vector3, Single, Vector3)
Moves this IGameObject to the given position and rotation with the given speed.
Public methodSetMaterial
Sets the material of this IGameObject.
Public methodSetMaterialText
Sets the material text of this IGameObject.
Public methodStop
Stop this IGameObject from moving any further.
Top
See Also