MimiTheAlchemist Posted June 25, 2014 Share Posted June 25, 2014 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 supposedto 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 commandto 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()endifEndEvent Am I doing something wrong? I would appreciate anyhelp with this problem so I can get it to work. Link to comment Share on other sites More sharing options...
Hallgarth Posted June 25, 2014 Share Posted June 25, 2014 Have you tried "setscale" instead of "setheight"? I know when using the console setscale changes height. Link to comment Share on other sites More sharing options...
MimiTheAlchemist Posted June 25, 2014 Author Share Posted June 25, 2014 I think you can only use setscale on an ObjectReference.It doesn't work on Actors. Link to comment Share on other sites More sharing options...
lofgren Posted June 25, 2014 Share Posted June 25, 2014 Actors are just object references with additional properties. Link to comment Share on other sites More sharing options...
MimiTheAlchemist Posted June 25, 2014 Author Share Posted June 25, 2014 (edited) 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 playerand it worked. Thanks for your help. I really appreciate it. Edited June 25, 2014 by MimiTheAlchemist Link to comment Share on other sites More sharing options...
Recommended Posts