Help with Scene Move actor ?

Post » Thu Jun 21, 2012 1:49 pm

I have a few Packages I was using for a sort of scene and decided to make them in a scene rather then what I was doing...

I need to move my actor from a cell to a cell to be ready as the scene begins... I was using

MoveToPackageLocation



It doesnt seem to work in the start of the package now... so I wanted to put something like moveto in the scene start script however extends form as scene doesnt seem to like the moveto ?


What can I do to get around this ????

User avatar
Star Dunkels Macmillan
 
Posts: 3421
Joined: Thu Aug 31, 2006 4:00 pm

Post » Thu Jun 21, 2012 4:03 am

1. Make (sure) the actor (is) an Alias in your Quest.
2. Then, in your Scene (which is hopefully in the same quest) add a script fragment to the START Script bit
3. Make sure you add the Alias (as REFERENCE ALIAS type) property to that fragment (which is fiddley, as you have to add a fragment with a comment, close the script bit, then reenter it and add the property).
4. You should then be able to use any of the MoveTo type commands to stick it in starting place (a XMarker or whatever) before the scene starts.
User avatar
Ice Fire
 
Posts: 3394
Joined: Fri Nov 16, 2007 3:27 am

Post » Thu Jun 21, 2012 4:10 am

Ok here is what I have


I have two Alias defined Visitor and Bar


Then in the script fragment I have below but I get 02016DBA.psc(8,8): MoveToPackageLocation is not a function or does not exist or I get Moveto is not a function as well doesnt matter if I use Bar or Outsidethebar either...


;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment
;NEXT FRAGMENT INDEX 9
Scriptname SF_ZZMorphWomanBar_02016DBA Extends Scene Hidden

;BEGIN FRAGMENT Fragment_0
Function Fragment_0()
;BEGIN CODE
Visitor.MoveTo(outsidethebar)
;END CODE
EndFunction
;END FRAGMENT

;END FRAGMENT CODE - Do not edit anything between this and the begin comment


Alias Property Visitor Auto

Alias Property bar Auto

ObjectReference Property OutsidetheBar Auto
User avatar
TASTY TRACY
 
Posts: 3282
Joined: Thu Jun 22, 2006 7:11 pm

Post » Thu Jun 21, 2012 11:58 am


Alias Property Visitor Auto

Alias Property bar Auto



Should be:

ReferenceAlias Property Visitor Auto

ReferenceAlias Property bar Auto



Then you may well also need:

ObjectReference Visitor_Actor = Visitor.GetReference()


And, if so, this:

Visitor.MoveTo(outsidethebar)

Should become this:

Visitor_Actor.MoveTo(outsidethebar)
User avatar
Ashley Hill
 
Posts: 3516
Joined: Tue Jul 04, 2006 5:27 am

Post » Thu Jun 21, 2012 1:18 am

Ok the script gives not error. How ever the actor Visitor never arrives and when I check on her she is running the Scene but she is not been moved.

I added in the fragment part and in properties put the reference Alias as you showed. The Alias exist or the actor would not be ruining the scene but the move to seems not to move to ??? The debug I added displays the Variable as None

ObjectReference Visitor_Actor = Visitor.GetReference()
Visitor_Actor.MoveTo(outsidethebar)
Debug.Notification("Should be done " + Visitor_Actor )

Here is a link to some of the screens maybe you will see some thing ? http://aframehosting.com/skyrimscreenhelps/


By the way if you ever need free web hosting (no porm) I can provide that ...
User avatar
renee Duhamel
 
Posts: 3371
Joined: Thu Dec 14, 2006 9:12 am

Post » Thu Jun 21, 2012 12:27 pm

I'm a little bit confused.

Is the scene meant to continue AFTER the move?

If the move is PART of the scene, then you should just be able to use an Action Package in the scene (on that actor)

If the move is to happen after the scene has finished - Then move the script to the Alias of the actor (rather than on the scene). Script should stay the same (apart from it will extend Alias, instead of scene).
User avatar
Luis Reyma
 
Posts: 3361
Joined: Fri Nov 02, 2007 11:10 am

Post » Thu Jun 21, 2012 11:24 am

Well Here is what happen and I am not entirely sure why. The scripts that belonged to the packages stopped working when I assigned them to the scene. I thought being that there is now fantastic intuitive manual that maybe I needed to use the script part of the scene in stead. So I added the move to the scene but could not get it to work with out error... didn't realize the reference thing and you should me how that worked... then after I add ed your part for some reason all the scripts even on the packages started working normal ?
So I left it with your move in the front and the package move on the package. The other packages have some scripting for add weapon etc and that all now works.
So Thanks for the help...

I must admit coming from Oblivion where I had no problem writing mods and then to Skyrim I was a bit taken back... Have made a few mistakes like discovering Nav mesh was why my characters didn't seem to go where I had built :)


Thanks a Million
User avatar
james kite
 
Posts: 3460
Joined: Sun Jul 22, 2007 8:52 am


Return to V - Skyrim