Click or drag to resize

IWorldServiceCreateObject Method

Creates an object in the world.

Namespace:  SampSharp.Entities.SAMP
Assembly:  SampSharp.Entities (in SampSharp.Entities.dll) Version: 0.0.0-local+709673996c0cc3c0733358a87691d1009326afa7
Syntax
C#
GlobalObject CreateObject(
	int modelId,
	Vector3 position,
	Vector3 rotation,
	float drawDistance,
	EntityId parent = default
)

Parameters

modelId
Type: SystemInt32
The model ID.
position
Type: SampSharp.Entities.SAMPVector3
The position.
rotation
Type: SampSharp.Entities.SAMPVector3
The rotation.
drawDistance
Type: SystemSingle
The draw distance.
parent (Optional)
Type: SampSharp.EntitiesEntityId
The parent of the entity to be created.

Return Value

Type: GlobalObject
The created object.
See Also