IWorldServiceCreateActor Method |
Creates a new actor in the world.
Namespace:
SampSharp.Entities.SAMP
Assembly:
SampSharp.Entities (in SampSharp.Entities.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax Actor CreateActor(
int modelId,
Vector3 position,
float rotation,
EntityId parent = default
)
Parameters
- modelId
- Type: SystemInt32
The model identifier. - position
- Type: SampSharp.Entities.SAMPVector3
The position of the actor. - rotation
- Type: SystemSingle
The rotation of the actor. - parent (Optional)
- Type: SampSharp.EntitiesEntityId
The parent of the entity to be created.
Return Value
Type:
ActorThe actor component of the newly created entity.
See Also