Jump to content

SetHeight doesn't work


MimiTheAlchemist

Recommended Posts

I am a working on a magic effect script for a mod using setHeight,

and it doesn't work. It is an ability type spell that is supposed

to make my character a little taller, and when I add it to my

character in game, she doesn't get taller. I try saving and reloading,

but she stays the same size. I use the getscale console command

to get her height and it stays at 80 (She is a child.).

 

First I tried this script.

 

Event OnEffectStart(Actor akTarget, Actor akCaster)
Game.GetPlayer().GetActorBase().SetHeight(1.01)
Game.GetPlayer().QueueNiNodeUpdate()

 

EndEvent
Then I tried this script.
Event OnEffectStart(Actor akTarget, Actor akCaster)
if akTarget == Game.getplayer()
Game.GetPlayer().GetActorBase().SetHeight(1.01)
Game.GetPlayer().QueueNiNodeUpdate()
endif
EndEvent

 

Am I doing something wrong? I would appreciate any

help with this problem so I can get it to work.

Link to comment
Share on other sites

I'll try it. Thanks for your help, Hallgarth and lofgren.

 

Edit: I tried it in the magic effect script, and it would not compile.

So I tried creating a quest and setting up an alias for the player

and it worked. Thanks for your help. I really appreciate it.

Edited by MimiTheAlchemist
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...