SetClass - ActorBase

Revision as of 07:31, 4 June 2012 by imported>Sagitarius22 (Created page with "Category:Scripting Category:Papyrus Category:SKSE '''SKSE Member of:''' ActorBase Script Set the class of this actor. (This function requires SKSE) == Syntax...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

SKSE Member of: ActorBase Script

Set the class of this actor. (This function requires SKSE)

Syntax

Function SetClass(Class c) native

Parameters

  • Class: the new class for this Actor.

Return Value

None.

Notes

  • This is a function performed on an ActorBase, meaning all Actors derived from this will have this class.


Examples

Class Property Berserker Auto

ActorBase pActorBase = Game.GetPlayer().GetActorBase()
pActorBase.SetClass(Berserker)

See Also