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-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
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