SampSharp
SampSharp
SampSharp.Entities.SAMP
WorldService Class
WorldService Methods
AddStaticPickup Method
CreateActor Method
CreateExplosion Method
CreateGangZone Method
CreateMenu Method
CreateObject Method
CreatePickup Method
CreatePlayerObject Method
CreatePlayerTextDraw Method
CreatePlayerTextLabel Method
CreateStaticVehicle Method
CreateTextDraw Method
CreateTextLabel Method
CreateVehicle Method
GameText Method
SendClientMessage Method
SendDeathMessage Method
SendPlayerMessageToPlayer Method
SetObjectsDefaultCameraCollision Method
SetWeather Method
WorldService
CreateActor Method
Creates a new actor in the world.
Namespace:
SampSharp.Entities.SAMP
Assembly:
SampSharp.Entities (in SampSharp.Entities.dll) Version: 0.0.0-local+709673996c0cc3c0733358a87691d1009326afa7
Syntax
C#
Copy
public
Actor
CreateActor
(
int
modelId
,
Vector3
position
,
float
rotation
,
EntityId
parent
=
default
)
Parameters
modelId
Type:
System
Int32
The model identifier.
position
Type:
SampSharp.Entities.SAMP
Vector3
The position of the actor.
rotation
Type:
System
Single
The rotation of the actor.
parent
(Optional)
Type:
SampSharp.Entities
EntityId
The parent of the entity to be created.
Return Value
Type:
Actor
The actor component of the newly created entity.
Implements
IWorldService
CreateActor(Int32, Vector3, Single, EntityId)
See Also
Reference
WorldService Class
SampSharp.Entities.SAMP Namespace