Complete Example Scripts: Difference between revisions

Jump to navigation Jump to search
imported>Cipscis
(→‎Move an Object to a Specific Location Without Fade: Mode capitalisation etc. consistent, updated to correctly use GetPosition functions, and corrected syntax of line breaks mid-function call)
imported>Evernewjoy
Line 78: Line 78:


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


Anonymous user

Navigation menu