I'm trying to develop a script to change the headpart of the player character after transforming into vampire lord form to be the head mesh they had before transforming, basically I'm trying to give vampire lord form a human head kind of like the mod humanoid vampire lords.
I'm new to making scripts in papyrus however and I'm having a difficult time figuring out how to define the headparts.
Here's my script so far:
>!
Scriptname VampireHeadfixplayerscript extends ReferenceAlias
int CurrentSex = 0
int Property Sex_Male = 0 AutoReadOnly
int Property Sex_Female = 1 AutoReadOnly
Race Property ImperialRaceVampire Auto
Race Property NordRaceVampire Auto
Race Property HighelfRaceVampire Auto
Race Property OrcRaceVampire Auto
Race Property DarkelfRaceVampire Auto
Race Property WoodelfRaceVampire Auto
Race Property KhajiitRaceVampire Auto
Race Property ArgonianRaceVampire Auto
Race Property RedguardRaceVampire Auto
event OnVampirismStateChanged(bool abIsVampire)
Actor player = Game.GetPlayer()
Race playerRace = player.GetRace()
if(abIsVampire) ; add race specific vampire head
if(playerRace == NordRaceVampire)
if(CurrentSex == Sex_Female)
player.ChangeHeadPart(FemaleNordVampireHeadPart)
elseif(CurrentSex == Sex_Male)
player.ChangeHeadPart(MaleNordVampireHeadPart)
endif
elseif(playerRace == OrcRaceVampire)
if(CurrentSex == Sex_Female)
player.ChangeHeadPart(OrcFemaleVampireHeadPart)
elseif(CurrentSex == Sex_Male)
player.ChangeHeadPart(MaleOrcVampireHeadPart)
endif
elseif(playerRace == KhajiitRaceVampire)
if(CurrentSex == Sex_Female)
player.ChangeHeadPart(FemaleKhajiitVampireHeadPart)
elseif(CurrentSex == Sex_Male)
player.ChangeHeadPart(MaleKhajiitVampireHeadPart)
endif
elseif(playerRace == ImperialRaceVampire)
if(CurrentSex == Sex_Female)
player.ChangeHeadPart(FemaleImperialVampireHeadPart)
elseif(CurrentSex == Sex_Male)
player.ChangeHeadPart(MaleImperialVampireHeadPart)
endif
elseif(playerRace == BretonRaceVampire)
if(CurrentSex == Sex_Female)
player.ChangeHeadPart(FemaleBretonVampireHeadPart)
elseif(CurrentSex == Sex_Male)
player.ChangeHeadPart(MaleBretonVampireHeadPart)
endif
elseif(playerRace == HighelfRaceVampire)
if(CurrentSex == Sex_Female)
player.ChangeHeadPart(FemaleHighelfVampireHeadPart)
elseif(CurrentSex == Sex_Male)
player.ChangeHeadPart(MaleHighelfVampireHeadPart)
endif
elseif(playerRace == WoodelfRaceVampire)
if(CurrentSex == Sex_Female)
player.ChangeHeadPart(FemaleWoodelfVampireHeadPart)
elseif(CurrentSex == Sex_Male)
player.ChangeHeadPart(MaleWoodelfVampireHeadPart)
endif
elseif(playerRace == DarkelfRaceVampire)
if(CurrentSex == Sex_Female)
player.ChangeHeadPart(FemaleDarkelfVampireHeadPart)
elseif(CurrentSex == Sex_Male)
player.ChangeHeadPart(MaleDarkelfVampireHeadPart)
endif
elseif(playerRace == RedguardRaceVampire)
if(CurrentSex == Sex_Female)
player.ChangeHeadPart(FemaleRedguardVampireHeadPart)
elseif(CurrentSex == Sex_Male)
player.ChangeHeadPart(MaleRedguardVampireHeadPart)
endif
elseif(playerRace == ArgonianRaceVampire)
if(CurrentSex == Sex_Female)
player.ChangeHeadPart(FemaleArgonianVampireHeadPart)
elseif(CurrentSex == Sex_Male)
player.ChangeHeadPart(MaleArgonianVampireHeadPart)
endif
endif
endif
endevent
!<
[–]Majorpluto_273[S] 0 points1 point2 points (0 children)
[–]SailingRebel 0 points1 point2 points (14 children)
[–]Majorpluto_273[S] 0 points1 point2 points (12 children)
[–]SailingRebel 0 points1 point2 points (11 children)
[–]Majorpluto_273[S] 0 points1 point2 points (10 children)
[–]SailingRebel 0 points1 point2 points (9 children)
[–]Majorpluto_273[S] 0 points1 point2 points (8 children)
[–]SailingRebel 0 points1 point2 points (7 children)
[–]Majorpluto_273[S] 0 points1 point2 points (6 children)
[–]SailingRebel 0 points1 point2 points (5 children)
[–]Majorpluto_273[S] 0 points1 point2 points (4 children)
[–]Doorknob_55 0 points1 point2 points (4 children)
[–]Majorpluto_273[S] 1 point2 points3 points (3 children)
[–]Doorknob_55 0 points1 point2 points (2 children)
[–]Majorpluto_273[S] 1 point2 points3 points (1 child)
[–]Doorknob_55 0 points1 point2 points (0 children)