Complete Example Scripts: Difference between revisions

Jump to navigation Jump to search
imported>Evernewjoy
imported>Evernewjoy
Line 188: Line 188:


if (akActionRef == Game.GetPlayer())
if (akActionRef == Game.GetPlayer())
akActionRef.TranslateTo(dest.GetPositionX(),dest.GetPositionY(),dest.GetPositionZ(),dest.GetAngleX(),dest.GetAngleY(),dest.GetAngleZ(),500)  
akActionRef.TranslateToRef(dest,500)  
                   ;500 is the speed value, it's pretty fast
                   ;500 is the speed value, it's pretty fast
endif
endif
Line 211: Line 211:


Get used to these basics and you will find Papyrus much more powerful than prior scripting languages.
Get used to these basics and you will find Papyrus much more powerful than prior scripting languages.


===A Fully Functional Dwemer Button===
===A Fully Functional Dwemer Button===
Anonymous user

Navigation menu