note Help Needed
This wiki is the result of an ongoing community effort — thank you all for helping!
If you want to provide changes to this page then please click here.
GetActorSkin
warning
This function was added in omp v1.1.0.2612 and will not work in earlier versions!
Description
Get the skin of the actor.
Name | Description |
---|---|
actorid | The ID of the actor to get. |
Return Values
Returns the actor's current skin.
Examples
new gMyActor;
public OnGameModeInit()
{
gMyActor = CreateActor(179, 1153.9640, -1772.3915, 16.5920, 0.0000);
new actorSkinID = GetActorSkin(gMyActor);
// The value of `actorSkinID` is now 179
return 1;
}
Related Functions
- CreateActor: Create an actor (static NPC).
- SetActorSkin: Set the skin of the actor.