warning Not Translated
This page has not been translated into the language that your browser requested yet. The English content is being shown as a fallback.
If you want to contribute a translation for this page then please click here.
SetActorSkin
warning
This function was added in omp v1.1.0.2612 and will not work in earlier versions!
Description
Set the skin of the actor.
Name | Description |
---|---|
actorid | The ID of the actor to set. |
skin | The ID of the skin to give them |
Returns
true - Success.
false - Failure (i.e. Actor is not created/valid).
Examples
new gMyActor;
public OnGameModeInit()
{
gMyActor = CreateActor(179, 1153.9640, -1772.3915, 16.5920, 0.0000);
SetActorSkin(gMyActor, 270); // Change actor skin from 179 to 270
return 1;
}
Related Functions
- CreateActor: Create an actor (static NPC).
- GetActorSkin: Get the skin of the actor.